]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
enable transparent LFS
authorMike Frysinger <vapier@chromium.org>
Tue, 26 May 2015 06:51:30 +0000 (02:51 -0400)
committerStephen Hemminger <shemming@brocade.com>
Thu, 25 Jun 2015 03:07:34 +0000 (23:07 -0400)
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 <vapier@chromium.org>
Makefile

index 2e91c3287fd89238a4334c1588ad9773d01d2806..67176beff3f7cdd55bebc6c390dad886b8169326 100644 (file)
--- 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