]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define IPC_INFO only if __USE_GNU.
authorUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:30:19 +0000 (03:30 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:30:19 +0000 (03:30 +0000)
sysdeps/gnu/bits/ipc.h

index c4e37358e837531515d41f4298981a1f094a86d3..38ee01f232abc7247ae064e5c8428912d9098e10 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* Create key if key does not exist. */
@@ -31,7 +31,9 @@
 #define IPC_RMID       0               /* Remove identifier.  */
 #define IPC_SET                1               /* Set `ipc_perm' options.  */
 #define IPC_STAT       2               /* Get `ipc_perm' options.  */
-#define IPC_INFO       3               /* See ipcs.  */
+#ifdef __USE_GNU
+# define IPC_INFO      3               /* See ipcs.  */
+#endif
 
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */