summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-15 16:30:06 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-15 16:30:06 +0400
commit0f53bbf368af43ecc67519d5de0a483f92a2dbc8 (patch)
tree405fc86a25f5e608c10429d61ca1f8d04e8a0ed9
parent6663e20a1a0e14eba4cb31d3e3bb19d989180c54 (diff)
downloadrspamd-0f53bbf368af43ecc67519d5de0a483f92a2dbc8.tar.gz
rspamd-0f53bbf368af43ecc67519d5de0a483f92a2dbc8.zip
* Include sys/resource.h for getrlimit
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.in6
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 536d27cc6..66c9fce73 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -187,6 +187,7 @@ CHECK_INCLUDE_FILES(sys/wait.h HAVE_SYS_WAIT_H)
CHECK_INCLUDE_FILES(sys/param.h HAVE_SYS_PARAM_H)
CHECK_INCLUDE_FILES(sys/cdefs.h HAVE_SYS_CDEFS_H)
CHECK_INCLUDE_FILES(sys/file.h HAVE_SYS_FILE_H)
+CHECK_INCLUDE_FILES(sys/resource.h HAVE_SYS_RESOURCE_H)
CHECK_INCLUDE_FILES(netinet/in.h HAVE_NETINET_IN_H)
CHECK_INCLUDE_FILES(arpa/inet.h HAVE_ARPA_INET_H)
CHECK_INCLUDE_FILES(netdb.h HAVE_NETDB_H)
diff --git a/config.h.in b/config.h.in
index 6d07ba8d3..1fd8a5361 100644
--- a/config.h.in
+++ b/config.h.in
@@ -60,6 +60,7 @@
#cmakedefine HAVE_SYS_WAIT_H 1
#cmakedefine HAVE_SYS_PARAM_H 1
#cmakedefine HAVE_SYS_FILE_H 1
+#cmakedefine HAVE_SYS_RESOURCE_H 1
#cmakedefine HAVE_PIDFILE 1
@@ -223,6 +224,11 @@
#include <sys/wait.h>
#endif
+/* sys/resource.h */
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
/* math */
#ifdef HAVE_MATH_H
#include <math.h>