diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-09-12 00:12:35 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-09-12 00:12:35 +0000 |
commit | cb33f3c61e3e9e8b2204c2a1288d9168291fbabb (patch) | |
tree | a5ef579126d74ad0e9404be40fdfea5461f04f64 /src/include | |
parent | f682481f7b44352871fe52809c0924bd09e94758 (diff) | |
download | nsss-cb33f3c61e3e9e8b2204c2a1288d9168291fbabb.tar.xz |
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-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 *) ; |