[BusyBox-cvs] busybox/util-linux fdisk.c,1.22,1.23

Erik Andersen,,, andersen at busybox.net
Wed May 19 09:00:02 UTC 2004


Update of /var/cvs/busybox/util-linux
In directory nail:/tmp/cvs-serv28111/util-linux

Modified Files:
	fdisk.c 
Log Message:
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


Index: fdisk.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/fdisk.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- a/fdisk.c	14 Apr 2004 17:51:38 -0000	1.22
+++ b/fdisk.c	19 May 2004 09:00:00 -0000	1.23
@@ -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>




More information about the busybox-cvs mailing list