diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-02-16 22:49:31 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-02-16 22:49:31 +1100 |
commit | 3c774c52f31b54eccb5a936470d21d196968693b (patch) | |
tree | 83cf29713e72c9099ad5189c61d10d0f7e2b5345 /openbsd-compat | |
parent | c97b01af62fa73b31a5b0c86c21c3347cdd0874d (diff) |
- (dtucker) [configure.ac openbsd-compat/port-aix.{c,h}] Silence some more
compiler warnings on AIX.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-aix.c | 4 | ||||
-rw-r--r-- | openbsd-compat/port-aix.h | 25 |
2 files changed, 24 insertions, 5 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index 8ab862f98..fa6a4ff7b 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -37,10 +37,6 @@ | |||
37 | #include <sys/socket.h> | 37 | #include <sys/socket.h> |
38 | #include "port-aix.h" | 38 | #include "port-aix.h" |
39 | 39 | ||
40 | /* These should be in the system headers but are not. */ | ||
41 | int usrinfo(int, char *, int); | ||
42 | int setauthdb(const char *, char *); | ||
43 | |||
44 | # ifdef HAVE_SETAUTHDB | 40 | # ifdef HAVE_SETAUTHDB |
45 | static char old_registry[REGISTRY_SIZE] = ""; | 41 | static char old_registry[REGISTRY_SIZE] = ""; |
46 | # endif | 42 | # endif |
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h index cc7c43cda..a05ce9703 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: port-aix.h,v 1.23 2005/02/15 10:45:58 dtucker Exp $ */ | 1 | /* $Id: port-aix.h,v 1.24 2005/02/16 11:49:31 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * | 4 | * |
@@ -30,6 +30,9 @@ | |||
30 | #ifdef HAVE_SYS_SOCKET_H | 30 | #ifdef HAVE_SYS_SOCKET_H |
31 | # include <sys/socket.h> | 31 | # include <sys/socket.h> |
32 | #endif | 32 | #endif |
33 | #ifdef HAVE_UNISTD_H | ||
34 | # include <unistd.h> /* for seteuid() */ | ||
35 | #endif | ||
33 | 36 | ||
34 | #ifdef WITH_AIXAUTHENTICATE | 37 | #ifdef WITH_AIXAUTHENTICATE |
35 | # include <login.h> | 38 | # include <login.h> |
@@ -42,6 +45,26 @@ | |||
42 | 45 | ||
43 | #include "buffer.h" | 46 | #include "buffer.h" |
44 | 47 | ||
48 | /* These should be in the system headers but are not. */ | ||
49 | int usrinfo(int, char *, int); | ||
50 | int setauthdb(const char *, char *); | ||
51 | /* these may or may not be in the headers depending on the version */ | ||
52 | #if (HAVE_DECL_AUTHENTICATE == 0) | ||
53 | int authenticate(char *, char *, int *, char **); | ||
54 | #endif | ||
55 | #if (HAVE_DECL_LOGINFAILED == 0) | ||
56 | int loginfailed(char *, char *, char *); | ||
57 | #endif | ||
58 | #if (HAVE_DECL_LOGINRESTRICTIONS == 0) | ||
59 | int loginrestrictions(char *, int, char *, char **); | ||
60 | #endif | ||
61 | #if (HAVE_DECL_LOGINSUCCESS == 0) | ||
62 | int loginsuccess(char *, char *, char *, char **); | ||
63 | #endif | ||
64 | #if (HAVE_DECL_PASSWDEXPIRED == 0) | ||
65 | int passwdexpired(char *, char **); | ||
66 | #endif | ||
67 | |||
45 | /* Some versions define r_type in the above headers, which causes a conflict */ | 68 | /* Some versions define r_type in the above headers, which causes a conflict */ |
46 | #ifdef r_type | 69 | #ifdef r_type |
47 | # undef r_type | 70 | # undef r_type |