From: Roy Marples Date: Thu, 12 Mar 2015 15:57:42 +0000 (+0000) Subject: Turn on Large File Support for Linux systems. X-Git-Tag: v6.8.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f433c2f6cfb88ffb6770ecc9ae0ade4126a7a26d;p=thirdparty%2Fdhcpcd.git Turn on Large File Support for Linux systems. Fixes [6ae09d0514] thanks to Mike Frysinger. --- 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