summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in4
-rw-r--r--src/audio_out/audio_oss_out.c11
2 files changed, 12 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index dab75d31c..0504c3696 100644
--- a/configure.in
+++ b/configure.in
@@ -197,10 +197,10 @@ AM_CONDITIONAL(HAVE_ESD, test x"$no_esd" != "xyes")
dnl
-dnl
+dnl Some extra checks.
dnl
AC_CHECK_FUNC(getpwuid_r,AC_DEFINE(HAVE_GETPWUID_R))
-
+AC_CHECK_HEADERS(byteswap.h)
dnl
dnl check cflags not supported by all gcc versions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c
index d72667c3a..0bb47ffbb 100644
--- a/src/audio_out/audio_oss_out.c
+++ b/src/audio_out/audio_oss_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_oss_out.c,v 1.5 2001/05/07 03:40:35 f1rmb Exp $
+ * $Id: audio_oss_out.c,v 1.6 2001/05/08 11:31:39 f1rmb Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -51,6 +51,15 @@
#include "metronom.h"
#include "utils.h"
+#ifndef AFMT_S16_NE
+# if defined(sparc) || defined(__sparc__) || defined(PPC)
+/* Big endian machines */
+# define AFMT_S16_NE AFMT_S16_BE
+# else
+# define AFMT_S16_NE AFMT_S16_LE
+# endif
+#endif
+
#define AO_OUT_OSS_IFACE_VERSION 1
#define AUDIO_NUM_FRAGMENTS 15