aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ed4261162..a2c03ce79 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>