diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-05-26 11:59:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-05-26 11:59:19 +0000 |
commit | 42f8883c71b908409bee7f4c77e77b9bef5d20d7 (patch) | |
tree | 0b4c4c3b138dbbae3400a997a1843039e2dca7ad | |
parent | 823b17263adfc8408f3e8596c1e1ad525702d4e0 (diff) | |
download | busybox-w32-42f8883c71b908409bee7f4c77e77b9bef5d20d7.tar.gz busybox-w32-42f8883c71b908409bee7f4c77e77b9bef5d20d7.tar.bz2 busybox-w32-42f8883c71b908409bee7f4c77e77b9bef5d20d7.zip |
Per suggestion from Bastian Blank, be less evil when we force fdisk to
transparently remap 32-bit interfaces to actually use 64 bit interfaces.
-Erik
-rw-r--r-- | util-linux/Makefile.in | 11 | ||||
-rw-r--r-- | util-linux/fdisk.c | 9 |
2 files changed, 11 insertions, 9 deletions
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in index 0be0fca25..72136f1ce 100644 --- a/util-linux/Makefile.in +++ b/util-linux/Makefile.in | |||
@@ -49,3 +49,14 @@ libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR) | |||
49 | $(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) | 49 | $(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) |
50 | $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) | 50 | $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) |
51 | 51 | ||
52 | ifneq ($(strip $(CONFIG_LFS)),y) | ||
53 | ifeq ($(strip $(FDISK_SUPPORT_LARGE_DISKS)),y) | ||
54 | |||
55 | $(UTILLINUX_DIR)fdisk.o: $(UTILLINUX_DIR)fdisk.c | ||
56 | $(CC) $(CFLAGS) \ | ||
57 | -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \ | ||
58 | $(EXTRA_CFLAGS) -c -o $@ $< | ||
59 | |||
60 | endif | ||
61 | endif | ||
62 | |||
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 5e7e79c65..b27a8aa09 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -15,15 +15,6 @@ | |||
15 | #define PROC_PARTITIONS "/proc/partitions" | 15 | #define PROC_PARTITIONS "/proc/partitions" |
16 | 16 | ||
17 | #include <features.h> | 17 | #include <features.h> |
18 | /* Force fdisk to transparently remap 32-bit interfaces | ||
19 | * to instead really use 64 bit interfaces, at least for | ||
20 | * glibc and uClibc... */ | ||
21 | #ifndef __USE_FILE_OFFSET64 | ||
22 | # ifdef FDISK_SUPPORT_LARGE_DISKS | ||
23 | # define __USE_FILE_OFFSET64 1 | ||
24 | # endif | ||
25 | #endif | ||
26 | |||
27 | #include <sys/types.h> | 18 | #include <sys/types.h> |
28 | #include <sys/stat.h> /* stat */ | 19 | #include <sys/stat.h> /* stat */ |
29 | #include <ctype.h> | 20 | #include <ctype.h> |