summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorge McCollister <georgem@novatech-llc.com>2010-02-26 11:55:00 -0600
committerStephen Gallagher <sgallagh@redhat.com>2010-03-04 12:41:30 -0500
commit07a2e0b66a1c4688825e07fa88d37886fec4770c (patch)
treeabc609d9e3909e3e8b756f6711c7f902f35b9242 /src
parent86e0543186bfecb2f502cde4a7cedb0908c59e06 (diff)
downloadsssd-07a2e0b66a1c4688825e07fa88d37886fec4770c.tar.gz
sssd-07a2e0b66a1c4688825e07fa88d37886fec4770c.tar.xz
sssd-07a2e0b66a1c4688825e07fa88d37886fec4770c.zip
Define _GNU_SOURCE in pam_sss.c.
_GNU_SOURCE needs to be defined when using strndup. Signed-off-by: George McCollister <georgem@novatech-llc.com>
Diffstat (limited to 'src')
-rw-r--r--src/sss_client/pam_sss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index 010ca4ef6..a7da1ec45 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -23,6 +23,10 @@
#define PAM_SM_SESSION
#define PAM_SM_PASSWORD
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>