Re: [PATCH 1/1] v4l: videodev2: Include linux/time.h for timeval and timespec structs

2016-11-21 Thread Mauro Carvalho Chehab
Em Mon, 21 Nov 2016 15:51:56 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On 11/21/16 15:33, Mauro Carvalho Chehab wrote: > > Em Thu, 27 Oct 2016 13:50:51 +0300 > > Sakari Ailus escreveu: > > > >> struct timeval and struct timespec are defined in linux/time.h. Explicitly > >> include the hea

Re: [PATCH 1/1] v4l: videodev2: Include linux/time.h for timeval and timespec structs

2016-11-21 Thread Sakari Ailus
Hi Mauro, On 11/21/16 15:33, Mauro Carvalho Chehab wrote: > Em Thu, 27 Oct 2016 13:50:51 +0300 > Sakari Ailus escreveu: > >> struct timeval and struct timespec are defined in linux/time.h. Explicitly >> include the header if __KERNEL__ is defined. > > The patch below doesn't do what you're ment

Re: [PATCH 1/1] v4l: videodev2: Include linux/time.h for timeval and timespec structs

2016-11-21 Thread Mauro Carvalho Chehab
Em Thu, 27 Oct 2016 13:50:51 +0300 Sakari Ailus escreveu: > struct timeval and struct timespec are defined in linux/time.h. Explicitly > include the header if __KERNEL__ is defined. The patch below doesn't do what you're mentioned above. It unconditionally include linux/time.h, and, for userspac

[PATCH 1/1] v4l: videodev2: Include linux/time.h for timeval and timespec structs

2016-10-27 Thread Sakari Ailus
struct timeval and struct timespec are defined in linux/time.h. Explicitly include the header if __KERNEL__ is defined. Signed-off-by: Sakari Ailus --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2