1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-30 00:30:24 +02:00

avcodec/libxvid: add HAVE_UNISTD_H around #include <unistd.h>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-08 01:55:47 +02:00
parent 0ebcf87803
commit 39ea21713c
2 changed files with 8 additions and 2 deletions

View File

@ -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.
*/

View File

@ -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>