summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-08-18 11:30:05 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-08-18 11:30:05 +0000
commit9c2fe904ad9a703f1ea71436e26aa1643f8337d3 (patch)
tree7ef84b8a910e8b7755d666fe15f23087a0b68081 /modules
parent9b4ed6689660825a5edb3153c8608a7d15b6ee1e (diff)
Relevant BUGIDs: none
Purpose of commit: bugfix Commit summary: --------------- configure should set _GNU_SOURCE/_BSD_SOURCE
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_group/pam_group.c2
-rw-r--r--modules/pam_issue/pam_issue.c3
-rw-r--r--modules/pam_mkhomedir/pam_mkhomedir.c3
-rw-r--r--modules/pam_rootok/pam_rootok.c2
-rw-r--r--modules/pam_securetty/pam_securetty.c2
-rw-r--r--modules/pam_shells/pam_shells.c2
-rw-r--r--modules/pam_succeed_if/pam_succeed_if.c2
-rw-r--r--modules/pam_umask/pam_umask.c2
-rw-r--r--modules/pam_unix/support.c2
-rw-r--r--modules/pam_warn/pam_warn.c2
-rw-r--r--modules/pam_wheel/pam_wheel.c2
11 files changed, 7 insertions, 17 deletions
diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c
index 81fa64de..d8d6d43e 100644
--- a/modules/pam_group/pam_group.c
+++ b/modules/pam_group/pam_group.c
@@ -11,8 +11,6 @@ static const char rcsid[] =
"Version 0.5 for Linux-PAM\n"
"Copyright (c) Andrew G. Morgan 1996 <morgan@linux.kernel.org>\n";
-#define _BSD_SOURCE
-
#include "config.h"
#include <sys/file.h>
diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c
index 27c10e60..0ff5e646 100644
--- a/modules/pam_issue/pam_issue.c
+++ b/modules/pam_issue/pam_issue.c
@@ -14,9 +14,6 @@
* Released under the GNU LGPL version 2 or later
*/
-#define _GNU_SOURCE
-#define _BSD_SOURCE
-
#include "config.h"
#include <string.h>
diff --git a/modules/pam_mkhomedir/pam_mkhomedir.c b/modules/pam_mkhomedir/pam_mkhomedir.c
index f842cd7f..95bd72fd 100644
--- a/modules/pam_mkhomedir/pam_mkhomedir.c
+++ b/modules/pam_mkhomedir/pam_mkhomedir.c
@@ -27,9 +27,6 @@
<morgan@parc.power.net> 1996
*/
-/* I want snprintf dammit */
-#define _GNU_SOURCE
-
#include "config.h"
#include <stdarg.h>
diff --git a/modules/pam_rootok/pam_rootok.c b/modules/pam_rootok/pam_rootok.c
index 93e31691..77541f8a 100644
--- a/modules/pam_rootok/pam_rootok.c
+++ b/modules/pam_rootok/pam_rootok.c
@@ -6,7 +6,7 @@
* Written by Andrew Morgan <morgan@linux.kernel.org> 1996/3/11
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <stdio.h>
#include <unistd.h>
diff --git a/modules/pam_securetty/pam_securetty.c b/modules/pam_securetty/pam_securetty.c
index c45ef351..8a956880 100644
--- a/modules/pam_securetty/pam_securetty.c
+++ b/modules/pam_securetty/pam_securetty.c
@@ -10,7 +10,7 @@
* Slight modifications AGM. 1996/12/3
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/modules/pam_shells/pam_shells.c b/modules/pam_shells/pam_shells.c
index 64359eac..6937b439 100644
--- a/modules/pam_shells/pam_shells.c
+++ b/modules/pam_shells/pam_shells.c
@@ -8,7 +8,7 @@
* This code shamelessly ripped from the pam_securetty module.
*/
-#define _BSD_SOURCE
+#include "config.h"
#include <pwd.h>
#include <stdarg.h>
diff --git a/modules/pam_succeed_if/pam_succeed_if.c b/modules/pam_succeed_if/pam_succeed_if.c
index 65ccaa3a..935c47a0 100644
--- a/modules/pam_succeed_if/pam_succeed_if.c
+++ b/modules/pam_succeed_if/pam_succeed_if.c
@@ -37,7 +37,7 @@
*
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <sys/types.h>
#include <errno.h>
diff --git a/modules/pam_umask/pam_umask.c b/modules/pam_umask/pam_umask.c
index e13f55ad..6731278c 100644
--- a/modules/pam_umask/pam_umask.c
+++ b/modules/pam_umask/pam_umask.c
@@ -33,8 +33,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include <pwd.h>
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c
index bb75298c..fc7fc2b3 100644
--- a/modules/pam_unix/support.c
+++ b/modules/pam_unix/support.c
@@ -4,7 +4,7 @@
* Copyright information at end of file.
*/
-#define _BSD_SOURCE
+#include "config.h"
#include <stdlib.h>
#include <unistd.h>
diff --git a/modules/pam_warn/pam_warn.c b/modules/pam_warn/pam_warn.c
index ee787e73..65e591a7 100644
--- a/modules/pam_warn/pam_warn.c
+++ b/modules/pam_warn/pam_warn.c
@@ -6,7 +6,7 @@
* Written by Andrew Morgan <morgan@linux.kernel.org> 1996/3/11
*/
-#define _BSD_SOURCE
+#include "config.h"
#include <stdio.h>
#include <unistd.h>
diff --git a/modules/pam_wheel/pam_wheel.c b/modules/pam_wheel/pam_wheel.c
index 92cd44b9..d91a864e 100644
--- a/modules/pam_wheel/pam_wheel.c
+++ b/modules/pam_wheel/pam_wheel.c
@@ -21,7 +21,7 @@
* a wheel member.
*/
-#define _BSD_SOURCE
+#include "config.h"
#include <stdio.h>
#include <unistd.h>