Defines
core/vidl/vidl_v4l_ulong_fix.h File Reference

Fix system bug where type ulong is not defined in linux/videodev.h on some Linux/GCC combinations. More...

#include <sys/types.h>

Go to the source code of this file.

Defines

#define __USE_MISC

Detailed Description

Fix system bug where type ulong is not defined in linux/videodev.h on some Linux/GCC combinations.

Author:
Fred Wheeler

I have found that on a Red Hat Linux 2.6.9 64 bit system with gcc 4.3.3, in order to build vidl, you need to #define __USE_MISC before #including sys/types.h and you need to make sure sys/types.h is #included in order to get ulong typedefed. ulong is used by /usr/include/linux/videodev.h which is included by several VIDL CXX files. I see some indications on the web that this ulong problem is a bug with certain Linux/GCC combinations.

This header file implements this fix. When it is needed it should be the first include.

-Fred Wheeler

Definition in file vidl_v4l_ulong_fix.h.


Define Documentation

#define __USE_MISC

Definition at line 27 of file vidl_v4l_ulong_fix.h.