From 020502d99d53b2a0d06df5c0764a10bf105827e2 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 7 Sep 2012 17:06:51 +0200 Subject: [PATCH] Enable large file support Without this, on 32 bit platforms you get a warning and syslog entry like [WARNING]: Error statting /swapfile: Value too large for defined data type [udisksmountmonitor.c:554, udisks_mount_monitor_get_swaps()] when you have a /swapfile which is bigger than 2 GB. https://launchpad.net/bugs/1039022 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 15f2a2f..1d91fe2 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,8 @@ CC_CHECK_CFLAGS_APPEND([ \ -ffunction-sections \ -fno-common \ -fno-strict-aliasing \ + -D_LARGEFILE64_SOURCE \ + -D_FILE_OFFSET_BITS=64 \ ]) AC_PATH_PROG([XSLTPROC], [xsltproc]) -- 2.7.4