]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Solaris: base system lacks paths.h system definitions
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Dec 2010 05:05:02 +0000 (22:05 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Dec 2010 05:05:02 +0000 (22:05 -0700)
compat/os/solaris.h

index 979720f350cf806835c355253a003734d2c3dcb2..5966dcfa36bcf9c636efb8aa3ad257289d1ee430 100644 (file)
@@ -72,5 +72,13 @@ SQUIDCEXTERN int gethostname(char *, int);
 #include "compat/os/opensolaris_10_netdb.h"
 #endif
 
+/* Solaris lacks paths.h by default */
+#if HAVE_PATHS_H
+#include <paths.h>
+#endif
+#if !defined(_PATH_DEVNULL)
+#define _PATH_DEVNULL "/dev/null"
+#endif
+
 #endif /* _SQUID_SOLARIS_ */
 #endif /* SQUID_OS_SOALRIS_H */