From: Mike Frysinger Date: Tue, 26 May 2015 06:51:30 +0000 (-0400) Subject: enable transparent LFS X-Git-Tag: v4.1.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232aaf4f4b993a3a96099f2ff02cee8847daa8b9;p=thirdparty%2Fiproute2.git enable transparent LFS Make sure we use 64-bit filesystem functions everywhere. This applies not only to being able to read large files (which generally doesn't apply to us), but also being able to simply stat them (as they might be using large inodes). Signed-off-by: Mike Frysinger --- diff --git a/Makefile b/Makefile index 2e91c3287..67176beff 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,8 @@ ADDLIB+=mpls_ntop.o mpls_pton.o CC = gcc HOSTCC = gcc DEFINES += -D_GNU_SOURCE +# Turn on transparent support for LFS +DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE CCOPTS = -O2 WFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2