Comment 9 for bug 794202

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : large file patch

Hi Andrew,

would you be willing to take this patch from Mikhail Kulinich
(posted at https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/794202)?
upstream?

thanks,
-serge

diff --git a/Make.Rules b/Make.Rules
index 2563e82..b99b752 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -48,7 +48,7 @@ KERNEL_HEADERS := $(topdir)/libcap/include
 IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)

 CC := gcc
-CFLAGS := -O2
+CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 BUILD_CC := $(CC)
 BUILD_CFLAGS := $(CFLAGS) $(IPATH)
 AR := ar