diff options
Diffstat (limited to 'comms/gmfsk/files/patch-snd.c')
-rw-r--r-- | comms/gmfsk/files/patch-snd.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/comms/gmfsk/files/patch-snd.c b/comms/gmfsk/files/patch-snd.c new file mode 100644 index 000000000000..82a04f4fc82c --- /dev/null +++ b/comms/gmfsk/files/patch-snd.c @@ -0,0 +1,27 @@ +--- ./src/snd.c.orig Thu May 29 22:03:20 2003 ++++ ./src/snd.c Thu May 29 22:17:00 2003 +@@ -9,7 +9,14 @@ + #include <unistd.h> + #include <errno.h> + #include <fcntl.h> +-#include <endian.h> ++#if HAVE_SYS_BYTEORDER_H ++# include <sys/byteorder.h> ++#elif HAVE_MACHINE_ENDIAN_H ++# include <machine/endian.h> ++#elif HAVE_ENDIAN_H ++# include <endian.h> ++#endif ++ + #include <sys/soundcard.h> + #include <sys/ioctl.h> + +@@ -18,6 +25,8 @@ + #include "misc.h" + + #undef SND_DEBUG ++ ++#define AFMT_S16_NE AFMT_S16_LE + + /* ---------------------------------------------------------------------- */ + |