These two include files are order-dependent on several operating systems
and as such are provided by Squid libcompat headers. There is no need for
code to include them specially and several HAVE_SYS_TIME_H macros were
missing which breaks the build on systems where the file is missing.
#define open _open /* Needed in win32lib.c */
#endif /* #ifdef __cplusplus */
+/* provide missing definitions from resoruce.h */
+/* NP: sys/resource.h and sys/time.h are apparently order-dependant. */
+#if HAVE_SYS_TIME_H
+#endif
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#else
#include <signal.h>
#include <syslog.h>
#include <string.h>
-#include <sys/time.h>
#include "msntauth.h"
#endif
-#if defined(LDAP_OPT_NETWORK_TIMEOUT)
-#include <sys/time.h>
-#endif
-
#define PROGRAM_NAME "ext_ldap_group_acl"
#define PROGRAM_VERSION "2.17"
#if HAVE_TIME_H
#include <time.h>
#endif
-#if HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
#if HAVE_ERRNO_H
#include <errno.h>
#endif
#define SQUID_MGR_COUNTERS_ACTION_H
#include "mgr/Action.h"
-#include <sys/time.h>
namespace Mgr
{
#include "mgr/Action.h"
#include "StoreStats.h"
-#include <sys/time.h>
namespace Mgr
{
#define SQUID_MGR_INTERVAL_ACTION_H
#include "mgr/Action.h"
-#include <sys/time.h>
namespace Mgr
{
#if _SQUID_WINDOWS_
-#if HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#if HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#endif
-
void WIN32_ExceptionHandlerInit(void);
int Win32__WSAFDIsSet(int fd, fd_set* set);