Re: time.h, included from videodev2.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

just for the record, the missing includes were

#include <linux/types.h> /* not <sys/types.h> */

#define _LINUX_TIME_H 1
#include <linux/videodev2.h>

Thanks

Thomas

On 28 Mar 2003, Ronald Bultje wrote:

> Hey Thomas,
> 
> On Fri, 2003-03-28 at 13:03, Thomas Højgaard Allin wrote:
> > /usr/include/linux/videodev2.h:116: parse error before `__s32'
> [..]
> > > /* your own includes */
> > > #include <stdio.h>
> > > #include <fcntl.h>
> > > #include <sys/ioctl.h>
> 
> Add "#include <sys/types.h>" here. __s32 isn't a standard C symbol, so
> you need a typedef, which is recursively provided in $(inc)/sys/types.h.
> 
> > > /* we don't want linux/time.h */
> > > #define _LINUX_TIME_H 1
> > > #include <linux/videodev2.h>
> 
> Ronald
> 
> 

-- 
Thomas H. Allin                         Ph.D. Student, M.Sc.
Ørsted DTU, Bldg. 327                   E-mail: tha@xxxxxxxxxxxxxx
Technical University of Denmark         Phn: +45 45 25 34 39
DK-2800 Kongens Lyngby                  Fax: +45 45 88 71 33





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux