summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--mdadm.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 112f3da..47c2a51 100644
--- 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 3831f42..1fe58a2 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -31,6 +31,10 @@
#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>