diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:14:33 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:14:33 -0400 |
commit | 017678433caae358b1782a2438b10e1ed510a8ad (patch) | |
tree | fd9915a47e3a2b0c65dd2981ea249a9f4b8ec7a8 /grp | |
parent | d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d (diff) | |
download | glibc-017678433caae358b1782a2438b10e1ed510a8ad.zip glibc-017678433caae358b1782a2438b10e1ed510a8ad.tar.gz glibc-017678433caae358b1782a2438b10e1ed510a8ad.tar.bz2 |
Suppress incorrect link warnings for NSS symbols
When glibc is built with --enable-static-nss, the warning that
using NSS symbols requires the nss shared objects to be present
is no longer true, as those symbols are built into libc. Suppress
the warning for those symbols by providing a new macro
(nss_interface_function) for the NSS functions that is defined as
static_link_warning in the normal case, and empty for static NSS.
Diffstat (limited to 'grp')
-rw-r--r-- | grp/initgroups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grp/initgroups.c b/grp/initgroups.c index 62fd1fc..fad30a7 100644 --- a/grp/initgroups.c +++ b/grp/initgroups.c @@ -180,7 +180,7 @@ getgrouplist (const char *user, gid_t group, gid_t *groups, int *ngroups) return retval; } -static_link_warning (getgrouplist) +nss_interface_function (getgrouplist) /* Initialize the group set for the current user by reading the group database and using all groups @@ -230,4 +230,4 @@ initgroups (const char *user, gid_t group) #endif } -static_link_warning (initgroups) +nss_interface_function (initgroups) |