summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcs.c
diff options
context:
space:
mode:
authorGuillem Jover2009-10-08 13:40:12 +0200
committerKarel Zak2009-10-09 15:17:53 +0200
commitfeada32ffc0c48827809fe174ffb4d1cc88462c8 (patch)
treef3292c3a6791ac71f625247c13b7b4382935e334 /sys-utils/ipcs.c
parentbuild-sys: check for union semun instead of using _SEM_SEMUN_UNDEFINED (diff)
downloadkernel-qcow2-util-linux-feada32ffc0c48827809fe174ffb4d1cc88462c8.tar.gz
kernel-qcow2-util-linux-feada32ffc0c48827809fe174ffb4d1cc88462c8.tar.xz
kernel-qcow2-util-linux-feada32ffc0c48827809fe174ffb4d1cc88462c8.zip
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 <features.h>) instead of 2 as what would be expected. Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r--sys-utils/ipcs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 0e645d138..766e58698 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
- <linux/ipc.h>, 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