summaryrefslogtreecommitdiff
path: root/event-config.h.cmake
diff options
context:
space:
mode:
authorDmitry Ilyin <dima@doty.ru>2022-08-07 13:51:48 +0300
committerAzat Khuzhin <azat@libevent.org>2022-08-09 00:18:10 +0200
commit99fd68abde4a59b90148db733fc51a7256cbd320 (patch)
tree0d0a7a0a3a689950921ad4536adc0bbc0c0919f1 /event-config.h.cmake
parentb2aca3bc31f46e7ea2fe2ac826ce2d3e6235f513 (diff)
downloadlibevent-99fd68abde4a59b90148db733fc51a7256cbd320.tar.gz
Add check of mmap64 function and use it when available rather that mmap
There can be issues on 32-bit architectures to mmap 2+GiB file, and to make this portable between different version of glibc, mmap64 was prefered over _FILE_OFFSET_BITS
Diffstat (limited to 'event-config.h.cmake')
-rw-r--r--event-config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/event-config.h.cmake b/event-config.h.cmake
index 4a626701..a52e7136 100644
--- a/event-config.h.cmake
+++ b/event-config.h.cmake
@@ -190,6 +190,9 @@
/* Define to 1 if you have the `mmap' function. */
#cmakedefine EVENT__HAVE_MMAP 1
+/* Define to 1 if you have the `mmap64' function. */
+#cmakedefine EVENT__HAVE_MMAP64 1
+
/* Define to 1 if you have the `nanosleep' function. */
#cmakedefine EVENT__HAVE_NANOSLEEP 1