]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
Makefile: add large file support (LFS)
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 21 Feb 2014 20:21:04 +0000 (21:21 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 26 Feb 2014 18:49:08 +0000 (19:49 +0100)
Large file support (LFS) in recent C libraries allows 32 bit applications to
create large files with file length values > 0x7FFFFFFF when the filesystem
supports it.

This patch adds large file support to the Makefile, if you don't want LFS use
the autotools version and call configure like this:

    ./configure --disable-largefile

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Makefile

index 7f5c12967dd48a6d54dd5270b8fad9ccecd8ced8..c1a316547d484a175e78ac57abd6a0010c4d2a66 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,7 @@ CFLAGS    = -O2 -Wall -Wno-parentheses \
            -fno-strict-aliasing
 
 CPPFLAGS += -Iinclude \
+           -D_FILE_OFFSET_BITS=64 \
            -DSO_RXQ_OVFL=40 \
            -DPF_CAN=29 \
            -DAF_CAN=PF_CAN