aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_gsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'formats/format_gsm.c')
-rwxr-xr-xformats/format_gsm.c4
1 files changed, 4 insertions, 0 deletions
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 */