]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Solaris: definitions of AF_LOCAL and strsep()
authorJose-Marcio Martins da Cruz <Jose-Marcio.Martins@mines-paristech.fr>
Fri, 16 Mar 2012 00:40:32 +0000 (18:40 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Mar 2012 00:40:32 +0000 (18:40 -0600)
compat/os/solaris.h

index 3dcbe5d88007f85fff244c8faa0917a8bf04b318..ef5a722a585216643c3aa794a12752330bc1ad06 100644 (file)
@@ -4,7 +4,6 @@
 
 #if _SQUID_SOLARIS_
 
-
 /*
  * ugly hack. System headers require wcsstr, but don't define it.
  */
@@ -90,6 +89,10 @@ SQUIDCEXTERN int gethostname(char *, int);
 #define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
 #endif
 
+/* Soaris 10 does not define POSIX AF_LOCAL, but does define the Unix name */
+#if !defined(AF_LOCAL)
+#define AF_LOCAL AF_UNIX
+#endif
 
 /* Solaris lacks paths.h by default */
 #if HAVE_PATHS_H
@@ -99,5 +102,8 @@ SQUIDCEXTERN int gethostname(char *, int);
 #define _PATH_DEVNULL "/dev/null"
 #endif
 
+/* Solaris 10 does not define strsep() */
+#include "compat/strsep.h"
+
 #endif /* _SQUID_SOLARIS_ */
 #endif /* SQUID_OS_SOALRIS_H */