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
This commit is contained in:
Eric Andersen 2004-05-26 11:59:19 +00:00
parent 823b17263a
commit 42f8883c71
2 changed files with 11 additions and 9 deletions

View File

@ -49,3 +49,14 @@ libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
$(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) $(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
$(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
ifneq ($(strip $(CONFIG_LFS)),y)
ifeq ($(strip $(FDISK_SUPPORT_LARGE_DISKS)),y)
$(UTILLINUX_DIR)fdisk.o: $(UTILLINUX_DIR)fdisk.c
$(CC) $(CFLAGS) \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
$(EXTRA_CFLAGS) -c -o $@ $<
endif
endif

View File

@ -15,15 +15,6 @@
#define PROC_PARTITIONS "/proc/partitions" #define PROC_PARTITIONS "/proc/partitions"
#include <features.h> #include <features.h>
/* Force fdisk to transparently remap 32-bit interfaces
* to instead really use 64 bit interfaces, at least for
* glibc and uClibc... */
#ifndef __USE_FILE_OFFSET64
# ifdef FDISK_SUPPORT_LARGE_DISKS
# define __USE_FILE_OFFSET64 1
# endif
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> /* stat */ #include <sys/stat.h> /* stat */
#include <ctype.h> #include <ctype.h>