From: leslie Date: Mon, 24 Aug 2009 11:32:36 +0000 (+0800) Subject: fix large file options for TSplay patch X-Git-Tag: 0.9.3~3 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=ecfaa1bad7d79de903273518dcb49a3abeab47e1;p=sasc-ng.git fix large file options for TSplay patch --- 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