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