diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/os/linux/spl/sys/sysmacros.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/os/linux/spl/sys/sysmacros.h b/include/os/linux/spl/sys/sysmacros.h index c9d33f407..7314588bc 100644 --- a/include/os/linux/spl/sys/sysmacros.h +++ b/include/os/linux/spl/sys/sysmacros.h @@ -192,7 +192,11 @@ extern void spl_cleanup(void); #define SET_ERROR(err) \ (__set_error(__FILE__, __func__, __LINE__, err), err) -#if defined(_KERNEL) && !defined(_KMEMUSER) && !defined(offsetof) +#include <linux/sort.h> +#define qsort(base, num, size, cmp) \ + sort(base, num, size, cmp, NULL) + +#if !defined(_KMEMUSER) && !defined(offsetof) /* avoid any possibility of clashing with <stddef.h> version */ |