1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

add attribute_hidden to __have_{sock_cloexec,pipe2,dup3

These internal knobs are not exposed as part of the public ABI, so mark
them hidden to avoid generating relocations against them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2012-08-18 00:37:30 -04:00
parent a277af22ea
commit 493387d21f
3 changed files with 11 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ libc_hidden_proto (__libc_sa_len)
#endif
#ifdef SOCK_CLOEXEC
extern int __have_sock_cloexec;
extern int __have_sock_cloexec attribute_hidden;
/* At lot of other functionality became available at the same time as
SOCK_CLOEXEC. Avoid defining separate variables for all of them
unless it is really necessary. */