Use 64 bit file offsets.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Apr 2013 21:42:34 +0000 (23:42 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Apr 2013 21:42:34 +0000 (23:42 +0200)
Makefile

index ed17d66..447da7b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@
 PREFIX=$(HOME)
 BINDIR=$(PREFIX)/bin
 
+FLAGS=-D_FILE_OFFSET_BITS=64
+
 all: ccp cmv
 
 cmv: ccp
@@ -11,7 +13,7 @@ ccp: ccp.o
        gcc -o $@ $^
 
 ccp.o: ccp.c
-       gcc -Wall -c -o $@ $^
+       gcc -Wall $(FLAGS) -c -o $@ $^
 
 install: all
        cp ccp "$(BINDIR)/ccp"