]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Print warning if _XOPEN_SOURCE and _SVID_SOURCE are not defined.
authorUlrich Drepper <drepper@redhat.com>
Sun, 25 May 1997 18:22:14 +0000 (18:22 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 25 May 1997 18:22:14 +0000 (18:22 +0000)
sysvipc/sys/ipc.h

index ea8f3f2132352d614f8b9a68bd5db0d14fd80d7c..4386d676d48f3fa94f544f32bb4e87553850ee7b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
 /* Get system dependent definition of `struct ipc_perm' and more.  */
 #include <sys/ipc_buf.h>
 
+#if !defined __USE_SVID && !defined __USE_XOPEN && __GNUC__ >= 2
+# warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
+#endif
+
 __BEGIN_DECLS
 
 /* Generates key for System V style IPC.  */