aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-23 20:23:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-23 20:23:30 +0000
commitd364248a31a54c13071493c18667572b7c6c42c5 (patch)
treec01b8094cca71bb2183b0eb58d6010d89f3344ed
parent51be9a03a601f4b64b883d5c97966041095517b0 (diff)
More include fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@892 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_intercom.c4
-rwxr-xr-xchannels/chan_oss.c4
-rwxr-xr-xformats/format_g729.c4
-rwxr-xr-xformats/format_gsm.c4
-rwxr-xr-xformats/format_jpeg.c5
-rwxr-xr-xformats/format_pcm.c4
-rwxr-xr-xformats/format_pcm_alaw.c4
-rwxr-xr-xformats/format_vox.c4
-rwxr-xr-xformats/format_wav.c4
-rwxr-xr-xformats/format_wav_gsm.c4
-rwxr-xr-xinclude/asterisk/frame.h4
11 files changed, 44 insertions, 1 deletions
diff --git a/apps/app_intercom.c b/apps/app_intercom.c
index 6312bcc69..bf139e0b9 100755
--- a/apps/app_intercom.c
+++ b/apps/app_intercom.c
@@ -26,7 +26,11 @@
#include <stdlib.h>
#include <pthread.h>
#include <sys/time.h>
+#ifdef __linux__
#include <linux/soundcard.h>
+#else
+#include <soundcard.h>
+#endif
#include <netinet/in.h>
#define DEV_DSP "/dev/dsp"
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 9f942e272..ffbbbdef8 100755
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -33,7 +33,11 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
+#ifdef __linux
#include <linux/soundcard.h>
+#else
+#include <soundcard.h>
+#endif
#include "busy.h"
#include "ringtone.h"
#include "ring10.h"
diff --git a/formats/format_g729.c b/formats/format_g729.c
index 5d4aeab4a..ee6f6ab50 100755
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
/* Some Ideas for this code came from makeg729e.c by Jeffery Chilton */
diff --git a/formats/format_gsm.c b/formats/format_gsm.c
index 87bd91bc4..5f7b74b00 100755
--- a/formats/format_gsm.c
+++ b/formats/format_gsm.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
/* Some Ideas for this code came from makegsme.c by Jeffery Chilton */
diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c
index 2d9b3e473..7e646f894 100755
--- a/formats/format_jpeg.c
+++ b/formats/format_jpeg.c
@@ -26,8 +26,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
-
+#else
+#include <machine/endian.h>
+#endif
static char *desc = "JPEG (Joint Picture Experts Group) Image Format";
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 28daed68f..14931dfdf 100755
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
#define BUF_SIZE 160 /* 160 samples */
diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c
index 129e292b3..9a4f66586 100755
--- a/formats/format_pcm_alaw.c
+++ b/formats/format_pcm_alaw.c
@@ -27,7 +27,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
#define BUF_SIZE 160 /* 160 samples */
diff --git a/formats/format_vox.c b/formats/format_vox.c
index 0a4c7c025..3848f47c0 100755
--- a/formats/format_vox.c
+++ b/formats/format_vox.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
#define BUF_SIZE 80 /* 160 samples */
diff --git a/formats/format_wav.c b/formats/format_wav.c
index 876714ad7..2dc547119 100755
--- a/formats/format_wav.c
+++ b/formats/format_wav.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
/* Some Ideas for this code came from makewave.c by Jeffery Chilton */
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c
index 527a4014a..fc6323b67 100755
--- a/formats/format_wav_gsm.c
+++ b/formats/format_wav_gsm.c
@@ -25,7 +25,11 @@
#include <errno.h>
#include <string.h>
#include <pthread.h>
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
#include "msgsm.h"
/* Some Ideas for this code came from makewave.c by Jeffery Chilton */
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index c23ed71ce..e89891bb1 100755
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -20,7 +20,11 @@
extern "C" {
#endif
+#ifdef __linux__
#include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
#include <sys/types.h>
//! Data structure associated with a single frame of data