summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-14 10:59:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-14 10:59:51 +0000
commitd364c280892af29956ad7032b0d242b7d24d7846 (patch)
tree49f11795a5cfa354fae1b29a1a4055d34bd6e0e4 /configure.ac
parentbe7ca950d7d4d18744a76abab091eb032835fb82 (diff)
configure: Add AC_SYS_LARGEFILE for mmap64 support on 64-bit
Without enabling largefile support the prototype for mmap64() is broken on Linux/x86_64 with the result being a 32-bit integer sign-extended to fill a 64-bit pointer. Hilarity ensues.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 94d54a60..f778a9a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_PATH_PYTHON([3],, [:])