]> andersk Git - openssh.git/commitdiff
- (djm) SUN_LEN macro for systems which lack it
authordjm <djm>
Fri, 18 Aug 2000 04:59:59 +0000 (04:59 +0000)
committerdjm <djm>
Fri, 18 Aug 2000 04:59:59 +0000 (04:59 +0000)
ChangeLog
defines.h
includes.h

index 2fd41fa6e88ed59cc9b3224fa7ed82a9c07ca613..ae8ae56e14c58f4aa9160484d2dd4bf12c1e3f93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
    Charles Levert <charles@comm.polymtl.ca>
  - (djm) Seperate arc4random into seperate file and use OpenSSL's RC4 
    implementation.
+ - (djm) SUN_LEN macro for systems which lack it
 
 20000815
  - (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com>
index 0480006d19cce9d6f7797ca8899b2de5a900b9de..cd322f9b8ba1ee110f516e154829403d6e797b4d 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -6,6 +6,7 @@
 #include <sys/types.h> /* For [u]intxx_t */
 #include <sys/socket.h> /* For SHUT_XXXX */
 #include <sys/param.h> /* For MAXPATHLEN */
+#include <sys/un.h> /* For SUN_LEN */
 #include <netinet/in_systm.h> /* For typedefs */
 #include <netinet/in.h> /* For IPv6 macros */
 #include <netinet/ip.h> /* For IPTOS macros */
@@ -282,6 +283,11 @@ typedef int mode_t;
 # define USE_PAM
 #endif /* defined(HAVE_SECURITY_PAM_APPL_H) && !defined(DISABLE_PAM) */
 
+#ifndef SUN_LEN
+#define SUN_LEN(su) \
+        (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
+#endif /* SUN_LEN */
+
 /* Function replacement / compatibility hacks */
 
 /* In older versions of libpam, pam_strerror takes a single argument */
index 13042fd21522a7a9dcac94ee4379e1a4be1c0bbd..5102c97ad8309f8bc04218fcecdfc19369de8ceb 100644 (file)
@@ -27,7 +27,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>
-#include <sys/un.h>
 #include <sys/resource.h>
 
 #include <netinet/tcp.h>
This page took 0.041724 seconds and 5 git commands to generate.