From: Jose-Marcio Martins da Cruz Date: Fri, 16 Mar 2012 00:57:44 +0000 (-0600) Subject: Solaris: definitions of AF_LOCAL and strsep() X-Git-Tag: SQUID_3_2_0_17~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=078bac425ba4bf34159f23159b24ffeaf36a215d;p=thirdparty%2Fsquid.git Solaris: definitions of AF_LOCAL and strsep() --- diff --git a/compat/os/solaris.h b/compat/os/solaris.h index 3dcbe5d880..ef5a722a58 100644 --- a/compat/os/solaris.h +++ b/compat/os/solaris.h @@ -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 */