1 Index: mdadm-3.2/mdadm.h
2 ===================================================================
3 --- mdadm-3.2.orig/mdadm.h 2011-02-01 06:06:21.000000000 +0100
4 +++ mdadm-3.2/mdadm.h 2011-07-11 00:36:52.135848368 +0200
10 +# include <features.h>
11 +# if __UCLIBC_MINOR__ <= 9 && __UCLIBC_SUBLEVEL__ <= 30
14 +void *memalign(size_t blocksize, size_t bytes);
15 +static inline int posix_memalign(void **memptr, size_t alignment, size_t size)
17 + if (alignment % sizeof(void *) != 0)
20 + *memptr = memalign(alignment, size);
21 + return (*memptr != NULL ? 0 : ENOMEM);
25 +char *strdup(const char *s);
26 +char *realpath(const char *path, char *resolved_path);
27 +static inline char *canonicalize_file_name(const char *path)
29 + char resolved[PATH_MAX] = { 0 };
31 + if (!realpath(path, resolved))
34 + return strdup(resolved);
37 +# endif /* __UCLIBC_MINOR__ <= 9 && __UCLIBC_SUBLEVEL__ <= 30 */
40 #include <sys/types.h>