From 74d1d749596d9d60723e05be3a5e24600721a32c Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Tue, 3 Dec 2019 09:49:40 -0800 Subject: Move linux qsort def to platform header Moving qsort to the platform header allows each platform to provide an appropriate sorting implementation. Reviewed-by: Allan Jude Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9663 --- module/zcommon/zprop_common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'module/zcommon/zprop_common.c') diff --git a/module/zcommon/zprop_common.c b/module/zcommon/zprop_common.c index 8416983fd..c4256c66f 100644 --- a/module/zcommon/zprop_common.c +++ b/module/zcommon/zprop_common.c @@ -41,11 +41,7 @@ #include "zfs_prop.h" #include "zfs_deleg.h" -#if defined(_KERNEL) -#include -#define qsort(base, num, size, cmp) \ - sort(base, num, size, cmp, NULL) -#else +#if !defined(_KERNEL) #include #include #include -- cgit v1.2.3