From b32dc7059fe323ed3d2c100e900d9250e31bc0b2 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Thu, 2 Jun 2011 14:19:03 +0200 Subject: adding large file support --- ChangeLog | 3 +++ Makefile | 3 ++- configure.ac | 1 + src/autoconf.h.in | 4 ++++ src/config.h | 1 - 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c66e307..301f0d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2011-06-02 Jiri Olsa + * adding large file support + 2011-05-30 Jiri Olsa * fixed bug in tracer waiting code (do not exit the loop prematurely) diff --git a/Makefile b/Makefile index 9d903b5..0f5a56c 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,8 @@ include test/Makefile endif INCLUDES= -I. -Isrc -Isrc/sysdeps/$(CONFIG_SYSDEP_DIR) -ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) -O2 -fPIC -Wall $(INCLUDES) -D_GNU_SOURCE +ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) -O2 -fPIC -Wall $(INCLUDES) +ALL_CFLAGS+=-D_GNU_SOURCE -imacros src/autoconf.h %.o: %.c LATRACE-CFLAGS diff --git a/configure.ac b/configure.ac index 572525e..2c287d1 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,7 @@ AC_TYPE_INT32_T AC_TYPE_INT8_T AC_TYPE_UINT16_T AC_TYPE_UINT8_T +AC_SYS_LARGEFILE date=`date "+%B %G"` unamem=`uname -m | sed -e 's/i.86/i686/' -e 's/^armv.*/arm/'` diff --git a/src/autoconf.h.in b/src/autoconf.h.in index e22985c..6d698a7 100644 --- a/src/autoconf.h.in +++ b/src/autoconf.h.in @@ -33,4 +33,8 @@ /* liberty */ #undef CONFIG_LIBERTY +/* large file support */ +#undef _LARGE_FILES +#undef _FILE_OFFSET_BITS + #endif diff --git a/src/config.h b/src/config.h index 1f49273..7c88b8c 100644 --- a/src/config.h +++ b/src/config.h @@ -31,7 +31,6 @@ #include "audit.h" #include "list.h" -#include "autoconf.h" #ifdef CONFIG_ARCH_HAVE_ARGS #include "args.h" -- cgit