diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_group/pam_group.c | 7 | ||||
-rw-r--r-- | modules/pam_issue/pam_issue.c | 2 | ||||
-rw-r--r-- | modules/pam_time/pam_time.c | 7 | ||||
-rwxr-xr-x | modules/register_static | 2 |
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" |