aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-26 11:59:19 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-26 11:59:19 +0000
commit1a7966fca99d6dbb5b166b5ac8b8c5e7a17f27d2 (patch)
tree0b4c4c3b138dbbae3400a997a1843039e2dca7ad
parent65443baf64beb61b7d5160c4d95466200bca34d5 (diff)
downloadbusybox-w32-1a7966fca99d6dbb5b166b5ac8b8c5e7a17f27d2.tar.gz
busybox-w32-1a7966fca99d6dbb5b166b5ac8b8c5e7a17f27d2.tar.bz2
busybox-w32-1a7966fca99d6dbb5b166b5ac8b8c5e7a17f27d2.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 git-svn-id: svn://busybox.net/trunk/busybox@8877 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--util-linux/Makefile.in11
-rw-r--r--util-linux/fdisk.c9
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
52ifneq ($(strip $(CONFIG_LFS)),y)
53ifeq ($(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
60endif
61endif
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>