From feada32ffc0c48827809fe174ffb4d1cc88462c8 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 8 Oct 2009 13:40:12 +0200 Subject: [PATCH] ipcs: use __GLIBC__ instead of obsolete __GNU_LIBRARY__ The latter is obsolete and it's currently defined to 6 for historical reasons (as per comment in ) instead of 2 as what would be expected. Signed-off-by: Guillem Jover --- sys-utils/ipcs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 0e645d13..766e5869 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -88,11 +88,9 @@ union semun { #endif /* X/OPEN (Jan 1987) does not define fields key, seq in struct ipc_perm; - libc 4/5 does not mention struct ipc_term at all, but includes - , which defines a struct ipc_perm with such fields. glibc-1.09 has no support for sysv ipc. glibc 2 uses __key, __seq */ -#if defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1 +#if defined (__GLIBC__) && __GLIBC__ >= 2 #define KEY __key #else #define KEY key -- 2.39.5