aboutsummaryrefslogtreecommitdiff
path: root/devel/clanlib/files/patch-soundprovider_recorder_oss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/clanlib/files/patch-soundprovider_recorder_oss.cpp')
-rw-r--r--devel/clanlib/files/patch-soundprovider_recorder_oss.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/clanlib/files/patch-soundprovider_recorder_oss.cpp b/devel/clanlib/files/patch-soundprovider_recorder_oss.cpp
new file mode 100644
index 000000000000..703d668b2cad
--- /dev/null
+++ b/devel/clanlib/files/patch-soundprovider_recorder_oss.cpp
@@ -0,0 +1,16 @@
+--- Sources/Sound/SoundProviders/Unix/soundprovider_recorder_oss.cpp.orig Tue Sep 23 07:15:13 2003
++++ Sources/Sound/SoundProviders/Unix/soundprovider_recorder_oss.cpp Tue Oct 21 02:52:21 2003
+@@ -34,6 +34,13 @@
+ #include <sys/select.h>
+ #endif
+
++#if !defined(AFMT_S16_NE)
++#if defined(BYTE_ORDER) && (BYTE_ORDER == BIG_ENDIAN)
++#define AFMT_S16_NE AFMT_S16_BE
++#else
++#define AFMT_S16_NE AFMT_S16_LE
++#endif
++#endif
+
+ /////////////////////////////////////////////////////////////////////////////
+ // CL_SoundProvider_Recorder_OSS_Session construction: