Make vodz happy and make fdisk always use large file support if
authorEric Andersen <andersen@codepoet.org>
Wed, 19 May 2004 09:00:00 +0000 (09:00 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 19 May 2004 09:00:00 +0000 (09:00 -0000)
possible, even if LFS is not enabled for the rest of busybox.
 -Erik

util-linux/fdisk.c

index ed42611626d61121d6fea328df679828d4ae2df4..a2c03ce79834e8f3c03b99fac21b265137df50f9 100644 (file)
 
 #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
+# define __USE_FILE_OFFSET64   1
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>           /* stat */
 #include <ctype.h>