diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-08 01:55:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-08 01:55:47 +0200 |
commit | 39ea21713c545607d3269d4414e3fe6224cf9a21 (patch) | |
tree | 12446a6caa1702816736e294e9bd57fc81b3c15a | |
parent | 0ebcf878032fa32a02e406a3397b51dc8b45109d (diff) | |
download | ffmpeg-39ea21713c545607d3269d4414e3fe6224cf9a21.tar.gz |
avcodec/libxvid: add HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libxvid.c | 5 | ||||
-rw-r--r-- | libavcodec/libxvid_rc.c | 5 |
2 files changed, 8 insertions, 2 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. */ diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c index 5da435b008..1351dcde6d 100644 --- a/libavcodec/libxvid_rc.c +++ b/libavcodec/libxvid_rc.c @@ -22,13 +22,16 @@ #include "config.h" #include <xvid.h> -#include <unistd.h> #include "libavutil/attributes.h" #include "libavutil/file.h" #include "avcodec.h" #include "libxvid.h" #include "mpegvideo.h" +#if HAVE_UNISTD_H +#include <unistd.h> +#endif + #undef NDEBUG #include <assert.h> |