aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libxvid.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-08 01:55:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 01:55:47 +0200
commit39ea21713c545607d3269d4414e3fe6224cf9a21 (patch)
tree12446a6caa1702816736e294e9bd57fc81b3c15a /libavcodec/libxvid.c
parent0ebcf878032fa32a02e406a3397b51dc8b45109d (diff)
downloadffmpeg-39ea21713c545607d3269d4414e3fe6224cf9a21.tar.gz
avcodec/libxvid: add HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libxvid.c')
-rw-r--r--libavcodec/libxvid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 88d748e8b8..e60b2d8f9d 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -26,7 +26,6 @@
*/
#include <xvid.h>
-#include <unistd.h>
#include "avcodec.h"
#include "internal.h"
#include "libavutil/file.h"
@@ -36,6 +35,10 @@
#include "libxvid.h"
#include "mpegvideo.h"
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/**
* Buffer management macros.
*/