diff --git a/Makefile b/Makefile
index d80e15d..ed2e168 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ PACKAGE = vdr-$(ARCHIVE)
 INCLUDES += -I$(VDRDIR)/include -I..
 export INCLUDES
 
-DEFINES += -D_GNU_SOURCE
+DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 
 ifdef DEBUG
 DEFINES += -DDEBUG
