From 9e1fd5ddb6f23a32c6f702865deaeecfba1678eb Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Thu, 6 Mar 2008 18:11:47 -0300 Subject: [PATCH] Compile warning fixes. Include unistd.h for "close" prototype. Include sys/ioctl.h instead of asm/ioctl.h to also get "ioctl" prototype. Only remaining warning is about REGION_INIT macro, as it commonly receives the address of a variable in stack, thus generating a warning about address of "" will always evaluate as 'true'. --- src/v4l.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/v4l.c b/src/v4l.c index 86c26e2..1b2ba33 100644 --- a/src/v4l.c +++ b/src/v4l.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "videodev.h" #include "xf86.h" @@ -27,7 +28,7 @@ #include "dgaproc.h" #include "xf86str.h" -#include /* _IORW(xxx) #defines are here */ +#include #if 0 # define DEBUG(x) (x) -- 1.5.4.3