]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Turn on Large File Support for Linux systems.
authorRoy Marples <roy@marples.name>
Thu, 12 Mar 2015 15:57:42 +0000 (15:57 +0000)
committerRoy Marples <roy@marples.name>
Thu, 12 Mar 2015 15:57:42 +0000 (15:57 +0000)
Fixes [6ae09d0514] thanks to Mike Frysinger.

configure

index 001711d872b5f761760eb14adc61555847fde385..509f10c0734dc63067446f6801c39fbd89236f6b 100755 (executable)
--- 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