Index: head/audio/timidity/files/patch-af =================================================================== --- head/audio/timidity/files/patch-af (revision 51036) +++ head/audio/timidity/files/patch-af (revision 51037) @@ -1,53 +1,27 @@ *** config.h.orig Sat Jun 1 07:54:49 1996 --- config.h Sat Sep 18 15:32:38 1999 *************** *** 217,222 **** --- 217,238 ---- # endif #endif /* linux */ + #ifdef __FreeBSD__ + #include + #include + #if BYTE_ORDER == LITTLE_ENDIAN + #undef BIG_ENDIAN + #undef PDP_ENDIAN + #elif BYTE_ORDER == BIG_ENDIAN + #undef LITTLE_ENDIAN + #undef PDP_ENDIAN + #else + # error No valid byte sex defined + #endif + #define USE_LDEXP + #define PI M_PI + #endif + /* Win32 on Intel machines */ #ifdef __WIN32__ # define LITTLE_ENDIAN -*************** -*** 254,266 **** ---- 270,292 ---- - #ifdef LITTLE_ENDIAN - #define LE_SHORT(x) x - #define LE_LONG(x) x -+ #if defined(__FreeBSD__) && !defined(__alpha__) -+ #define BE_SHORT(x) __byte_swap_word(x) -+ #define BE_LONG(x) __byte_swap_long(x) -+ #else - #define BE_SHORT(x) XCHG_SHORT(x) - #define BE_LONG(x) XCHG_LONG(x) -+ #endif - #else - #define BE_SHORT(x) x - #define BE_LONG(x) x -+ #ifdef __FreeBSD__ -+ #define LE_SHORT(x) __byte_swap_word(x) -+ #define LE_LONG(x) __byte_swap_long(x) -+ #else - #define LE_SHORT(x) XCHG_SHORT(x) - #define LE_LONG(x) XCHG_LONG(x) -+ #endif - #endif - - #define MAX_AMPLIFICATION 800 Property changes on: head/audio/timidity/files/patch-af ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/audio/timidity/files/patch-dumb_c.c =================================================================== --- head/audio/timidity/files/patch-dumb_c.c (nonexistent) +++ head/audio/timidity/files/patch-dumb_c.c (revision 51037) @@ -0,0 +1,16 @@ +--- dumb_c.c.orig Mon May 20 16:01:17 1996 ++++ dumb_c.c Tue Dec 4 23:45:01 2001 +@@ -66,10 +66,12 @@ + ctl_expression, ctl_panning, ctl_sustain, ctl_pitch_bend + }; + +-static FILE *infp=stdin, *outfp=stdout; /* infp isn't actually used yet */ ++static FILE *infp, *outfp; /* infp isn't actually used yet */ + + static int ctl_open(int using_stdin, int using_stdout) + { ++ infp = stdin; ++ outfp = stdout; + if (using_stdin && using_stdout) + infp=outfp=stderr; + else if (using_stdout) Property changes on: head/audio/timidity/files/patch-dumb_c.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property