diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-05-25 18:22:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-25 18:22:14 +0000 |
commit | 68b192d0dda0bef94c1c9bd5d7457f2dfd95af95 (patch) | |
tree | c4239ad3ab859380196bd6611b1639c1b4c2085f | |
parent | c0a119316e3cf2247fe9b2c3d6fbbddebb7dbca8 (diff) |
Print warning if _XOPEN_SOURCE and _SVID_SOURCE are not defined.
-rw-r--r-- | sysvipc/sys/ipc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysvipc/sys/ipc.h b/sysvipc/sys/ipc.h index ea8f3f2132..4386d676d4 100644 --- a/sysvipc/sys/ipc.h +++ b/sysvipc/sys/ipc.h @@ -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. @@ -25,6 +25,10 @@ /* 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. */ |