summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2004-05-19 09:00:00 +0000
committerEric Andersen2004-05-19 09:00:00 +0000
commit256c4fd587691076846383ab8b207b07cd5614e4 (patch)
tree3b44f45d6fa89e354fd229cdddbddeb6b375932d
parent28885c3f20a38820c8c05d900581d3feb410b36a (diff)
downloadbusybox-256c4fd587691076846383ab8b207b07cd5614e4.zip
busybox-256c4fd587691076846383ab8b207b07cd5614e4.tar.gz
Make vodz happy and make fdisk always use large file support if
possible, even if LFS is not enabled for the rest of busybox. -Erik
-rw-r--r--util-linux/fdisk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index ed42611..a2c03ce 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -14,6 +14,14 @@
#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>