open call and conflicting headers

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

 



hello, i want to use the "open" systemcall, but i get conflicting headers when i use the header that 'man open' suggests (these are <sys/types.h>, <sys/stat.h> and <fcntl.h>):

In file included from GEye.cpp:6:
/usr/include/sys/types.h:61: conflicting types for `typedef __dev_t dev_t'
/usr/include/linux/types.h:14: previous declaration as `typedef __kernel_dev_t
dev_t'
/usr/include/sys/types.h:66: conflicting types for `typedef __gid_t gid_t'
/usr/include/linux/types.h:41: previous declaration as `typedef __kernel_gid_t
gid_t'
/usr/include/sys/types.h:71: conflicting types for `typedef __mode_t mode_t'
/usr/include/linux/types.h:16: previous declaration as `typedef __kernel_mode_t
mode_t'
/usr/include/sys/types.h:76: conflicting types for `typedef __nlink_t nlink_t'
/usr/include/linux/types.h:17: previous declaration as `typedef
__kernel_nlink_t nlink_t'
/usr/include/sys/types.h:81: conflicting types for `typedef __uid_t uid_t'
/usr/include/linux/types.h:40: previous declaration as `typedef __kernel_uid_t
uid_t'


i am not sure where the "/usr/include/linux/types.h" comes from, i use gtk2.0 also in this program (and v4l). can anyone help me to determine which of the two types.h is deprecated, or how i can solve this problem.

thank you,
geert.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux