Skip to contentSkip to conversation

v4l2_driver.h patch

PATCH Carl Karsten 1 participant 1 message Feb 29, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Adding #include <stddef.h> solves a build problem I had on Ubnutu.

v4l-dvb/v4l2-apps/test$ make
CC driver-test.o
In file included from driver-test.c:17:
../lib/v4l2_driver.h:26: error: expected specifier-qualifier-list before 'size_t'
make: *** [driver-test.o] Error 1

     24 struct v4l2_t_buf {
     25         void            *start;
     26         size_t          length;
     27 };

http://www.video4linux.org/browser/v4l2-apps/lib/v4l2_driver.h

Carl K

v4l2-apps/lib/v4l2_driver.h Thu Feb 28 13:12:58 2008 -0600 renamed from v4l2-apps/lib/v4l2_driver.h Tue Feb 26 20:43:56 2008 +0000 +1 -0
diff -r 127f67dea087 v4l2-apps/lib/v4l2_driver.h
@@ -12,6 +12,7 @@
    Lesser General Public License for more details.
   */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <sys/time.h>
 #include <linux/videodev2.h>

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list