diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/nsss/grp.h | 8 | ||||
-rw-r--r-- | src/include/nsss/shadow.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/include/nsss/grp.h b/src/include/nsss/grp.h index 8e16467..001a98e 100644 --- a/src/include/nsss/grp.h +++ b/src/include/nsss/grp.h @@ -20,7 +20,7 @@ extern "C" { #define getgrnam nsss_unix_getgrnam #define getgrnam_r nsss_unix_getgrnam_r -#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE) # define getgrouplist nsss_unix_getgrouplist #endif @@ -38,7 +38,7 @@ extern "C" { #define getgrnam nsss_switch_getgrnam #define getgrnam_r nsss_switch_getgrnam_r -#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE) # define getgrouplist nsss_switch_getgrouplist #endif @@ -55,7 +55,7 @@ extern "C" { #define getgrnam nsss_all_getgrnam #define getgrnam_r nsss_all_getgrnam_r -#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE) # define getgrouplist nsss_all_getgrouplist #endif @@ -69,7 +69,7 @@ extern "C" { do not conflict with nsss operation. */ -#if defined(__GNU__) && (defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE)) +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE) #include <sys/types.h> extern int setgroups (size_t, gid_t const *) ; extern int initgroups (char const *, gid_t) ; diff --git a/src/include/nsss/shadow.h b/src/include/nsss/shadow.h index 5665fc8..dc20d5e 100644 --- a/src/include/nsss/shadow.h +++ b/src/include/nsss/shadow.h @@ -51,6 +51,8 @@ extern "C" { do not conflict with nsss operation. */ +#define SHADOW "/etc/shadow" + #include <stdio.h> extern struct spwd *fgetspent (FILE *) ; |