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 <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9663
This commit is contained in:
Matthew Macy
2019-12-03 09:49:40 -08:00
committed by Brian Behlendorf
parent e69bb31b71
commit 74d1d74959
3 changed files with 8 additions and 8 deletions
+1 -5
View File
@@ -41,11 +41,7 @@
#include "zfs_prop.h"
#include "zfs_deleg.h"
#if defined(_KERNEL)
#include <linux/sort.h>
#define qsort(base, num, size, cmp) \
sort(base, num, size, cmp, NULL)
#else
#if !defined(_KERNEL)
#include <stdlib.h>
#include <string.h>
#include <ctype.h>