ffmpeg: Only include unistd.h if it exists

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Derek Buitenhuis 12 years ago committed by Michael Niedermayer
parent 30a265f058
commit 23a5a24c0f
  1. 5
      ffmpeg.c

@ -31,8 +31,13 @@
#include <errno.h>
#include <limits.h>
#if HAVE_ISATTY
#if HAVE_IO_H
#include <io.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#endif
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"

Loading…
Cancel
Save