summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-31 23:37:56 +0200
committerwm4 <wm4@nowhere>2012-07-31 23:37:56 +0200
commitf752212c6235316e681fade76c5693d46df7d310 (patch)
treeae098ae650e99ff9a4a50bf3c7b0f7cd8b1b841a /libvo
parent0744d99c5df3a2c7b3600083c97785eb3e6215b2 (diff)
downloadmpv-f752212c6235316e681fade76c5693d46df7d310.tar.bz2
mpv-f752212c6235316e681fade76c5693d46df7d310.tar.xz
Change <endian.h> include to <sys/types.h>
This seems to be more portable. Should fix compilation on OSX and FreeBSD. Apparently also works on MinGW-w64.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/osd.c2
-rw-r--r--libvo/vo_x11.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libvo/osd.c b/libvo/osd.c
index 0c971e3c85..4fabc5c9ac 100644
--- a/libvo/osd.c
+++ b/libvo/osd.c
@@ -27,7 +27,7 @@
#include "osd.h"
#include "mp_msg.h"
#include <inttypes.h>
-#include <endian.h>
+#include <sys/types.h>
#include "cpudetect.h"
#if ARCH_X86
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 3b264b232c..946421e004 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <endian.h>
+#include <sys/types.h>
#include "config.h"
#include "video_out.h"