summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-03-12 15:57:42 +0000
committerRoy Marples <roy@marples.name>2015-03-12 15:57:42 +0000
commitf433c2f6cfb88ffb6770ecc9ae0ade4126a7a26d (patch)
treec0a6a4f744182b399878b622a0cb9e4995722fea /configure
parent2c8889dcf60359ccc00304052ec19f4a74aada2d (diff)
downloaddhcpcd-f433c2f6cfb88ffb6770ecc9ae0ade4126a7a26d.tar.xz
Turn on Large File Support for Linux systems.
Fixes [6ae09d0514] thanks to Mike Frysinger.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 001711d8..509f10c0 100755
--- a/configure
+++ b/configure
@@ -367,6 +367,11 @@ kfreebsd*)
;;
linux*)
echo "CPPFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=700" >>$CONFIG_MK
+ # Large File Support, should be fine for 32-bit systems.
+ # But if this is the case, why is it not set by default?
+ echo "CPPFLAGS+= -D_FILE_OFFSET_BITS=64" >>$CONFIG_MK
+ echo "CPPFLAGS+= -D_LARGEFILE_SOURCE" >>$CONFIG_MK
+ echo "CPPFLAGS+= -D_LARGEFILE64_SOURCE" >>$CONFIG_MK
# glibc-2.20
echo "CPPFLAGS+= -D_DEFAULT_SOURCE" >>$CONFIG_MK
echo "DHCPCD_SRCS+= if-linux.c" >>$CONFIG_MK