]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Don't include uclibc as part of 'everything'
authorNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 03:59:31 +0000 (14:59 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 03:59:31 +0000 (14:59 +1100)
As I cannot compile in on x86-64.
Also, small dietlibc fix

Makefile
mdadm.h

index 112f3da19264a3a35b910ab73d964431cde7be8b..47c2a51de74672548da8c908ac9f77f486b09b35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,8 @@ endif
 
 all : mdadm mdadm.man md.man mdadm.conf.man
 
-everything: all mdadm.static mdadm.uclibc swap_super test_stripe  mdassemble mdassemble.uclibc mdassemble.static mdassemble.man
+everything: all mdadm.static swap_super test_stripe  mdassemble mdassemble.static mdassemble.man
+# mdadm.uclibc and mdassemble.uclibc don't work on x86-64
 # mdadm.tcc doesn't work..
 
 mdadm : $(OBJS)
diff --git a/mdadm.h b/mdadm.h
index 3831f42b1224dc4b074b256bf9b165f3ccc8115a..1fe58a2f215be80dd06d59ea566f3010d601525a 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
 #include       <unistd.h>
 #ifndef __dietlibc__
 extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
+#else
+# ifdef __NO_STAT64
+# define lseek64 lseek
+# endif
 #endif
 
 #include       <sys/types.h>