summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-05-19 09:58:09 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-23 10:57:44 -0400
commit324fb26ba803a999bedc29e93c46c84f27abf5b7 (patch)
treed504009cdf1377ab791f69706c4e77f755ea65ad /src/sss_client
parent7bdaf2a712d73763e7c3d25f6bb544b18f7028eb (diff)
downloadsssd-324fb26ba803a999bedc29e93c46c84f27abf5b7.tar.gz
sssd-324fb26ba803a999bedc29e93c46c84f27abf5b7.tar.bz2
sssd-324fb26ba803a999bedc29e93c46c84f27abf5b7.zip
Set _GNU_SOURCE globally
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/common.c4
-rw-r--r--src/sss_client/pam_sss.c4
2 files changed, 1 insertions, 7 deletions
diff --git a/src/sss_client/common.c b/src/sss_client/common.c
index c8a95159..b6033055 100644
--- a/src/sss_client/common.c
+++ b/src/sss_client/common.c
@@ -23,8 +23,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* for struct ucred */
-#define _GNU_SOURCE
+#include "config.h"
#include <nss.h>
#include <security/pam_modules.h>
@@ -43,7 +42,6 @@
#include <libintl.h>
#define _(STRING) dgettext (PACKAGE, STRING)
-#include "config.h"
#include "sss_cli.h"
#if HAVE_PTHREAD
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index 66de232d..d54c0251 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -24,10 +24,6 @@
#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>