aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-14 19:34:50 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-14 19:34:50 +0300
commit44311f4235463a8d4d3c4128242bbd7c9d2a203b (patch)
tree61cf649234696840338a76e6c83a8d5b8f45460f /config.h.in
parent4499fc92189905fde71139822d784ab7819b181c (diff)
downloadrspamd-44311f4235463a8d4d3c4128242bbd7c9d2a203b.tar.gz
rspamd-44311f4235463a8d4d3c4128242bbd7c9d2a203b.zip
Detect and use fallocate/posix_fallocate.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in
index 999340f07..aeefa9b0a 100644
--- a/config.h.in
+++ b/config.h.in
@@ -85,7 +85,7 @@
#endif /* HAVE_ENDIAN_H */
#if !defined(BYTE_ORDER) || (BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN)
- error "Undefined or unknown BYTE_ORDER";
+ # error "Undefined or unknown BYTE_ORDER"
#endif
@@ -123,6 +123,10 @@
#cmakedefine HAVE_O_DIRECT 1
#cmakedefine HAVE_FADVISE 1
+
+#cmakedefine HAVE_FALLOCATE 1
+#cmakedefine HAVE_POSIX_FALLOCATE 1
+
#cmakedefine HAVE_FDATASYNC 1
#cmakedefine HAVE_COMPATIBLE_QUEUE_H 1
@@ -307,6 +311,11 @@
#include <fcntl.h>
#endif
+/* Linux specific falloc.h */
+#ifdef HAVE_LINUX_FALLOC_H
+#include <linux/falloc.h>
+#endif
+
/* poll */
#ifdef HAVE_POLL_H
#include <poll.h>