From 3def525dc45f52a5e50f29f0106fe16dcd1b85c9 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 18 Jan 2009 10:46:13 +0100 Subject: [PATCH] Added "DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" to Make.config.template --- CONTRIBUTORS | 3 +++ HISTORY | 6 +++++- Make.config.template | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 335c5711..13692e0c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2402,3 +2402,6 @@ Edgar Hucek Johann Friedrichs for fixing incrementing the continuity counter in cPatPmtGenerator::GetPmt() + for pointing out that "DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE + -D_LARGEFILE64_SOURCE" should be added to Make.config. + to Make.config.template (thanks to Johann Friedrichs for pointing this out). diff --git a/HISTORY b/HISTORY index 58756a34..84b8e43f 100644 --- a/HISTORY +++ b/HISTORY @@ -5912,7 +5912,7 @@ Video Disk Recorder Revision History can handle DVB-S2. The #define is still there to allow people with older drivers who don't need DVB-S2 to use this version without pathcing. -2009-01-16: Version 1.7.4 +2009-01-18: Version 1.7.4 - Removed the '#define FE_CAN_2ND_GEN_MODULATION', since it was wrong and the flag is now in the driver, anyway. @@ -5935,3 +5935,7 @@ Video Disk Recorder Revision History caused a problem with removing, no others were removed any more and an ongoing recording could fill up the disk and cause other recordings to be deleted automatically (reported by Reinhard Nissl). +- Added "DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" + to Make.config.template (thanks to Johann Friedrichs for pointing this out). + Plugin authors should add this line to their Makefile or Make.config if they use + file access functions that need special versions for 64 bit offsets. diff --git a/Make.config.template b/Make.config.template index 32284fca..758fc145 100644 --- a/Make.config.template +++ b/Make.config.template @@ -6,7 +6,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Make.config.template 1.16 2008/01/13 12:54:09 kls Exp $ +# $Id: Make.config.template 2.1 2009/01/18 10:46:13 kls Exp $ ### The C compiler and options: @@ -19,6 +19,7 @@ CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses ifdef PLUGIN CFLAGS += -fPIC CXXFLAGS += -fPIC +DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE endif ### The directory environment: