summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-09-12 00:12:35 +0000
committerLaurent Bercot <ska@appnovation.com>2024-09-12 00:12:35 +0000
commitcb33f3c61e3e9e8b2204c2a1288d9168291fbabb (patch)
treea5ef579126d74ad0e9404be40fdfea5461f04f64 /src
parentf682481f7b44352871fe52809c0924bd09e94758 (diff)
downloadnsss-cb33f3c61e3e9e8b2204c2a1288d9168291fbabb.tar.xz
Prepare for 0.2.0.5 ; fix ftms and support more defs in headersHEADmastermain
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/include/nsss/grp.h8
-rw-r--r--src/include/nsss/shadow.h2
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 *) ;