mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
linux-generic: add header guard for <not-cancel.h>
In general we just try to include <not-cancel.h> once, thus avoiding any issues with multiple inclusion. However, the getaddrinfo sources are somewhat tangled, and .c files include each other to get the final result. Each .c file currently has its own include of <not-cancel.h>. While you could properly re-factor this for the case of gai.c, the posix/tst-rfc3484.c tests directly include one of the sub-files (sysdeps/posix/getaddrinfo.c), and it starts to feel fragile.
This commit is contained in:
parent
32e8667947
commit
981416291c
@ -1,3 +1,8 @@
|
||||
2012-05-16 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/generic/not-cancel.h: Add
|
||||
multiple-inclusion guard.
|
||||
|
||||
2012-05-16 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/generic/bits/typesizes.h:
|
||||
|
@ -17,6 +17,9 @@
|
||||
License along with the GNU C Library. If not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _LINUX_GENERIC_NOT_CANCEL_H
|
||||
#define _LINUX_GENERIC_NOT_CANCEL_H
|
||||
|
||||
#include <sysdeps/unix/sysv/linux/not-cancel.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@ -27,3 +30,5 @@
|
||||
#undef open_not_cancel_2
|
||||
#define open_not_cancel_2(name, flags) \
|
||||
INLINE_SYSCALL (openat, 3, AT_FDCWD, (const char *) (name), (flags))
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user