You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-25 14:23:15 +02:00
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>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user