]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/uclibc/files/kernel-key-t-ipc.h.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / uclibc / files / kernel-key-t-ipc.h.patch
1 # include/linux/posix_types.h defines __kernel_key_t as int, this file
2 # contains an identical definition.  This results in a compiler error
3 # if both files are included.  The ipc.h file, however, also includes
4 # bits/types.h, which typedefs __key_t to (int), therefore it must
5 # be safe to use __key_t in place of __kernel_key_t (given that C
6 # regards equivalent numeric typedefs as identical.)
7 --- uClibc-0.9.27/libc/sysdeps/linux/common/bits/ipc.h.orig     2005-05-07 13:36:04.448332211 -0700
8 +++ uClibc-0.9.27/libc/sysdeps/linux/common/bits/ipc.h  2005-05-07 13:37:00.493885708 -0700
9 @@ -35,9 +35,6 @@
10  # define IPC_INFO      3               /* See ipcs.  */
11  #endif
12  
13 -/* Type of a SYSV IPC key.  */
14 -typedef int __kernel_key_t;
15 -
16  /* Special key values.  */
17  #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
18  
19 @@ -45,7 +42,7 @@
20  /* Data structure used to pass permission information to IPC operations.  */
21  struct ipc_perm
22  {
23 -    __kernel_key_t     __key;
24 +    __key_t            __key;
25      __kernel_uid_t     uid;
26      __kernel_gid_t     gid;
27      __kernel_uid_t     cuid;