AC_CHECK_HEADERS([linux/ethtool.h linux/sockios.h])
AC_CHECK_HEADER(glob.h,,[AC_ERROR(glob.h not found ...)])
AC_CHECK_HEADERS([dirent.h fnmatch.h])
+ AC_CHECK_HEADERS([sys/resource.h])
AC_CHECK_HEADERS([sys/socket.h net/if.h sys/mman.h linux/if_arp.h], [], [],
[[#ifdef HAVE_SYS_SOCKET_H
#define _FILE_OFFSET_BITS 64
#include "util-coredump-config.h"
#include "conf.h"
+#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
+#endif
/**
* \brief Configures the core dump size.
*/
int32_t CoredumpLoadConfig (void)
{
+#ifdef HAVE_SYS_RESOURCE_H
/* get core dump configuration settings for suricata */
char* dump_size_config = NULL;
rlim_t max_dump = 0;
}
/* failed to set the coredump limit */
SCLogInfo ("Could't set coredump size to %s.", dump_size_config);
+#endif /* HAVE_SYS_RESOURCE_H */
return 0;
}