OSDN Git Service

test: fix build of v4l encode demo.
authorBastien Nocera <hadess@hadess.net>
Fri, 13 Apr 2012 22:46:23 +0000 (23:46 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 16 Apr 2012 07:28:55 +0000 (09:28 +0200)
This fixes:
capture.cpp: In function ‘int read_frame()’:
capture.cpp:140:64: error: ‘read’ was not declared in this scope
capture.cpp: In function ‘void init_userp(unsigned int)’:
capture.cpp:431:30: error: ‘getpagesize’ was not declared in this scope
avcenc.cpp:283:26: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
capture.cpp: In function ‘void close_device()’:
capture.cpp:643:24: error: ‘close’ was not declared in this scope

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
test/v4l_h264/encode/capture.cpp

index c868430..dc3c221 100644 (file)
@@ -36,6 +36,7 @@
 #include <getopt.h> /* getopt_long() */
 #include <fcntl.h> /* low-level i/o */
 #include <errno.h>
+#include <unistd.h>
 #include <malloc.h>
 #include <sys/stat.h>
 #include <sys/mman.h>