[PATCH] Use LFS for all apps
authorJens Axboe <axboe@suse.de>
Fri, 14 Oct 2005 07:09:29 +0000 (09:09 +0200)
committerJens Axboe <axboe@suse.de>
Fri, 14 Oct 2005 07:09:29 +0000 (09:09 +0200)
Makefile
sgioread.c

index e6c583aa8dd542a94efe3459a9961f85cd01e287..2a4be12c2841f92f6af1d28e3cf5d15518a065d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC     = gcc
-CFLAGS = -Wall -O2 -g -D_GNU_SOURCE
+CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 PROGS  = dops fio sgioread
 
 all: $(PROGS)
index 74a65673e41a5bde45b2106127e73214d56039c8..8670148a131dd53be6e36ed2a9f316275b88ca7a 100644 (file)
@@ -1,11 +1,6 @@
 /*
  * small utility to read from atapi and scsi devices
  */
-#define _FILE_OFFSET_BITS 64
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-
 #include <stdio.h>
 #include <fcntl.h>
 #include <stdlib.h>