From: Matt Mackall Point XFS qsort at lib/sort in a way that makes it happy. Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton --- 25-akpm/fs/xfs/linux-2.6/xfs_linux.h | 9 +++++++++ 1 files changed, 9 insertions(+) diff -puN fs/xfs/linux-2.6/xfs_linux.h~lib-sort-replace-qsort-in-xfs fs/xfs/linux-2.6/xfs_linux.h --- 25/fs/xfs/linux-2.6/xfs_linux.h~lib-sort-replace-qsort-in-xfs 2005-02-02 15:41:39.264639288 -0800 +++ 25-akpm/fs/xfs/linux-2.6/xfs_linux.h 2005-02-02 15:41:39.268638680 -0800 @@ -88,6 +88,7 @@ #include #include #include +#include #include #include @@ -368,4 +369,12 @@ static inline __uint64_t roundup_64(__ui return(x * y); } + +#define qsort xfs_sort +static inline void xfs_sort(void *a, size_t n, size_t s, + int (*cmp)(const void *,const void *)) +{ + sort(a, n, s, cmp, 0); +} + #endif /* __XFS_LINUX__ */ _