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:
parent
823b17263a
commit
42f8883c71
@ -49,3 +49,14 @@ libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
|
||||
$(UTILLINUX_DIR)$(UTILLINUX_AR): $(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
|
||||
|
||||
|
@ -15,15 +15,6 @@
|
||||
#define PROC_PARTITIONS "/proc/partitions"
|
||||
|
||||
#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/stat.h> /* stat */
|
||||
#include <ctype.h>
|
||||
|
Loading…
Reference in New Issue
Block a user