]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Solaris: base system lacks paths.h system definitions
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 7 Nov 2010 05:26:48 +0000 (23:26 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 7 Nov 2010 05:26:48 +0000 (23:26 -0600)
compat/os/solaris.h

index eddbbf7308f6a438db7b659af437cae6d07b61b0..14dce05a0ad907a8abd774eff8d97ddfe2f1d25c 100644 (file)
@@ -90,5 +90,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 */