aboutsummaryrefslogtreecommitdiff
path: root/comms/gmfsk/files/patch-snd.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-30 17:18:48 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-30 17:18:48 +0000
commit891114eb1eb2173f6307f466cb9b7e5a3dbb7e5b (patch)
treefab391f8874a974ad6d9498e650056117aeb5b4b /comms/gmfsk/files/patch-snd.c
parent1f8cd43b7357f32439b1fd1a826951ba69d51798 (diff)
downloadports-891114eb1eb2173f6307f466cb9b7e5a3dbb7e5b.tar.gz
ports-891114eb1eb2173f6307f466cb9b7e5a3dbb7e5b.zip
Notes
Diffstat (limited to 'comms/gmfsk/files/patch-snd.c')
-rw-r--r--comms/gmfsk/files/patch-snd.c27
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
+
+ /* ---------------------------------------------------------------------- */
+