Support getting/setting capabilities on large files.
See:
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/794202
Patch originally from Mikhail Kulinich, but forwarded from Serge Hallyn
at Canonical.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
diff --git a/Make.Rules b/Make.Rules
index 2563e82..b99b752 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -48,7 +48,7 @@
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