/******************************************************/
#include "compat/osdetect.h"
+/* ugly hack. But we need to set this REALLY soon in the header */
+#if _SQUID_SOLARIS_
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 1
+#endif
+#ifndef _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
+#endif
+#endif
+
+
/*****************************************************/
/* FDSETSIZE is messy and needs to be done before */
#if _SQUID_SOLARIS_
+
+/*
+ * ugly hack. System headers require wcsstr, but don't define it.
+ */
+#include <wchar.h>
+#ifdef wcsstr
+#undef wcsstr
+#endif /* wcsstr */
+#define wcsstr wcswcs
+
+/*
+ * we need some standard-based extensions
+ */
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 1
+#endif
+#ifndef _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
+#endif
+
+
/*
* On Solaris 9 x86, gcc may includes a "fixed" set of old system
* include files that is incompatible with the updated Solaris
AR_R="$AR r"
AC_SUBST(AR_R)
+# this needs to be before any test is run, to have more standard
+# functions available on some Unix sysems (e.g. Solaris)
+AC_USE_SYSTEM_EXTENSIONS
+
AC_ARG_ENABLE(strict-error-checking,
AS_HELP_STRING([--disable-strict-error-checking],[By default squid is compiled
with all possible static compiler error-checks enabled.
SQUID_CC_GUESS_VARIANT
SQUID_CC_GUESS_OPTIONS
-
-
dnl find out the exe extension for this platform.
dnl If it is not empty, use it for CGI as well.
AC_EXEEXT
stdint.h \
inttypes.h \
db.h \
- db_185.h
+ db_185.h \
+ wchar.h
)
CHECK_STRUCT_PAM_CONV
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+#if HAVE_NETINET_IP_H
+#include <netinet/ip.h>
+#endif
#ifdef _SQUID_MSWIN_
#include <ws2tcpip.h>
#endif