blob: 9269e383c6e9fab0fd84d99444656828753f36e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff -rdup mdadm-2.6.1.orig/mdadm.h mdadm-2.6.1/mdadm.h
--- mdadm-2.6.1.orig/mdadm.h 2007-02-22 04:59:28.000000000 +0100
+++ mdadm-2.6.1/mdadm.h 2007-04-16 20:53:53.000000000 +0200
@@ -382,7 +382,7 @@ struct stat64;
#define HAVE_NFTW we assume
#define HAVE_FTW
-#ifdef UCLIBC
+#if defined __UCLIBC__ || /* older did use that? */ defined UCLIBC
# include <features.h>
# ifndef __UCLIBC_HAS_FTW__
# undef HAVE_FTW
diff -rdup mdadm-2.6.1.orig/util.c mdadm-2.6.1/util.c
--- mdadm-2.6.1.orig/util.c 2006-12-19 03:35:27.000000000 +0100
+++ mdadm-2.6.1/util.c 2007-04-16 21:05:56.000000000 +0200
@@ -468,7 +468,7 @@ int nftw(const char *path, int (*han)(co
return ftw(path, add_dev_1, nopenfd);
}
#else
-int add_dev(const char *name, const struct stat *stb, int flag, struct FTW *s)
+int add_dev_1(const char *name, const struct stat *stb, int flag, struct FTW *s)
{
return 0;
}
|