From 078bac425ba4bf34159f23159b24ffeaf36a215d Mon Sep 17 00:00:00 2001 From: Jose-Marcio Martins da Cruz Date: Thu, 15 Mar 2012 18:57:44 -0600 Subject: [PATCH] Solaris: definitions of AF_LOCAL and strsep() --- compat/os/solaris.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 */ -- 2.47.2