diff options
author | Damien Miller <djm@mindrot.org> | 2000-08-18 14:59:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-08-18 14:59:59 +1000 |
commit | 3241fa15eab83af79bfda709ffe6d235705d614d (patch) | |
tree | 0892a8bb67145e2945a55e5ac5cedc52ee9f7867 | |
parent | a7f58293f7340fc022c025b482614d5bd8dada50 (diff) |
- (djm) SUN_LEN macro for systems which lack it
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | defines.h | 6 | ||||
-rw-r--r-- | includes.h | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -47,6 +47,7 @@ | |||
47 | Charles Levert <charles@comm.polymtl.ca> | 47 | Charles Levert <charles@comm.polymtl.ca> |
48 | - (djm) Seperate arc4random into seperate file and use OpenSSL's RC4 | 48 | - (djm) Seperate arc4random into seperate file and use OpenSSL's RC4 |
49 | implementation. | 49 | implementation. |
50 | - (djm) SUN_LEN macro for systems which lack it | ||
50 | 51 | ||
51 | 20000815 | 52 | 20000815 |
52 | - (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com> | 53 | - (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com> |
@@ -6,6 +6,7 @@ | |||
6 | #include <sys/types.h> /* For [u]intxx_t */ | 6 | #include <sys/types.h> /* For [u]intxx_t */ |
7 | #include <sys/socket.h> /* For SHUT_XXXX */ | 7 | #include <sys/socket.h> /* For SHUT_XXXX */ |
8 | #include <sys/param.h> /* For MAXPATHLEN */ | 8 | #include <sys/param.h> /* For MAXPATHLEN */ |
9 | #include <sys/un.h> /* For SUN_LEN */ | ||
9 | #include <netinet/in_systm.h> /* For typedefs */ | 10 | #include <netinet/in_systm.h> /* For typedefs */ |
10 | #include <netinet/in.h> /* For IPv6 macros */ | 11 | #include <netinet/in.h> /* For IPv6 macros */ |
11 | #include <netinet/ip.h> /* For IPTOS macros */ | 12 | #include <netinet/ip.h> /* For IPTOS macros */ |
@@ -282,6 +283,11 @@ typedef int mode_t; | |||
282 | # define USE_PAM | 283 | # define USE_PAM |
283 | #endif /* defined(HAVE_SECURITY_PAM_APPL_H) && !defined(DISABLE_PAM) */ | 284 | #endif /* defined(HAVE_SECURITY_PAM_APPL_H) && !defined(DISABLE_PAM) */ |
284 | 285 | ||
286 | #ifndef SUN_LEN | ||
287 | #define SUN_LEN(su) \ | ||
288 | (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) | ||
289 | #endif /* SUN_LEN */ | ||
290 | |||
285 | /* Function replacement / compatibility hacks */ | 291 | /* Function replacement / compatibility hacks */ |
286 | 292 | ||
287 | /* In older versions of libpam, pam_strerror takes a single argument */ | 293 | /* In older versions of libpam, pam_strerror takes a single argument */ |
diff --git a/includes.h b/includes.h index 13042fd21..5102c97ad 100644 --- a/includes.h +++ b/includes.h | |||
@@ -27,7 +27,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
27 | #include <sys/socket.h> | 27 | #include <sys/socket.h> |
28 | #include <sys/ioctl.h> | 28 | #include <sys/ioctl.h> |
29 | #include <sys/wait.h> | 29 | #include <sys/wait.h> |
30 | #include <sys/un.h> | ||
31 | #include <sys/resource.h> | 30 | #include <sys/resource.h> |
32 | 31 | ||
33 | #include <netinet/tcp.h> | 32 | #include <netinet/tcp.h> |