mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Print warning if _XOPEN_SOURCE and _SVID_SOURCE are not defined.
This commit is contained in:
parent
c0a119316e
commit
68b192d0dd
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user