Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-08 03:45:43 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 03:54:30 +0400
commit0ebcf878032fa32a02e406a3397b51dc8b45109d (patch)
tree3d668f67a461aaf3494030c942d17a19cad75db0 /libavdevice/lavfi.c
parent5b58692ed4a711d431e0073d6853cf8210ebb5a6 (diff)
protect unistd.h with #if HAVE_UNISTD_H in code from recent av_bprint_fd_contents() patches
Should fix build failure on MSVC Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 9be2d0e724..f96fe8352c 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -27,7 +27,6 @@
#include <float.h> /* DBL_MIN, DBL_MAX */
#include <fcntl.h> /* O_RDONLY */
-#include <unistd.h> /* close() */
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
@@ -43,6 +42,10 @@
#include "libavformat/internal.h"
#include "avdevice.h"
+#if HAVE_UNISTD_H
+#include <unistd.h> /* close() */
+#endif
+
typedef struct {
AVClass *class; ///< class for private options
char *graph_str;