summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2001-05-08 05:02:50 +0000
committerAndrew G. Morgan <morgan@kernel.org>2001-05-08 05:02:50 +0000
commit1ffe510887d0e16782849bf364087fad844ff744 (patch)
treed7551546c128d355187f4885276a013605da2caa /modules
parent7626d42b8d9ae4ea90f731e79ce8a9acce1ca8c2 (diff)
Relevant BUGIDs: 416229
Purpose of commit: cleanup Commit summary: --------------- A little closer to supporting AIX. These changes are not all of the suggested changes in the bug report that I will close as a result of this checkin, but they are all the changes that I feel happy making right now. I've avoided some of the more gratutitous changes, hoping that the submitter will reevaluate what they need in the light of what I have committed here.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_group/pam_group.c7
-rw-r--r--modules/pam_issue/pam_issue.c2
-rw-r--r--modules/pam_time/pam_time.c7
-rwxr-xr-xmodules/register_static2
4 files changed, 16 insertions, 2 deletions
diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c
index af3c7ef3..4f6f34fb 100644
--- a/modules/pam_group/pam_group.c
+++ b/modules/pam_group/pam_group.c
@@ -36,6 +36,13 @@ const static char rcsid[] =
#define PAM_GROUP_BUFLEN 1000
#define FIELD_SEPARATOR ';' /* this is new as of .02 */
+#ifdef TRUE
+# undef TRUE
+#endif
+#ifdef FALSE
+# undef FALSE
+#endif
+
typedef enum { FALSE, TRUE } boolean;
typedef enum { AND, OR } operator;
diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c
index 2cb54bec..c4f2c6a6 100644
--- a/modules/pam_issue/pam_issue.c
+++ b/modules/pam_issue/pam_issue.c
@@ -22,13 +22,13 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <time.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <utmp.h>
#include <malloc.h>
+#include <time.h>
#include <security/_pam_macros.h>
diff --git a/modules/pam_time/pam_time.c b/modules/pam_time/pam_time.c
index 0964f776..9cf68280 100644
--- a/modules/pam_time/pam_time.c
+++ b/modules/pam_time/pam_time.c
@@ -36,6 +36,13 @@ const static char rcsid[] =
#define PAM_TIME_BUFLEN 1000
#define FIELD_SEPARATOR ';' /* this is new as of .02 */
+#ifdef TRUE
+# undef TRUE
+#endif
+#ifdef FALSE
+# undef FALSE
+#endif
+
typedef enum { FALSE, TRUE } boolean;
typedef enum { AND, OR } operator;
diff --git a/modules/register_static b/modules/register_static
index 2067ac7e..f3aebb60 100755
--- a/modules/register_static
+++ b/modules/register_static
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
if [ `basename $PWD` != "modules" ]; then
echo "$0 must be run from the .../modules directory"