From ecfaa1bad7d79de903273518dcb49a3abeab47e1 Mon Sep 17 00:00:00 2001 From: leslie Date: Mon, 24 Aug 2009 19:32:36 +0800 Subject: [PATCH] fix large file options for TSplay patch --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b2340f6..544fc54 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,12 @@ endif ### VDR version dependant -ifneq ($(shell if test $(APIVERSNUM) -ge 010703; then echo "*"; fi),) +# test VDR version +BYVERS = $(strip $(shell if test $(APIVERSNUM) -ge 010703; then echo "*"; fi)) +# test if PlayTsVideo() exists (e.g. TSplay patch) +BYTSPL = $(strip $(shell grep -l 'PlayTsVideo' $(VDRDIR)/include/vdr/device.h)) + +ifneq ($(BYVERS)$(BYTSPL),) SHAREDDEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE endif -- 2.39.5