diff options
Diffstat (limited to 'lib/libc/stdlib/qsort_r.c')
| -rw-r--r-- | lib/libc/stdlib/qsort_r.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdlib/qsort_r.c b/lib/libc/stdlib/qsort_r.c index 646eeaff..25a3aa81 100644 --- a/lib/libc/stdlib/qsort_r.c +++ b/lib/libc/stdlib/qsort_r.c @@ -25,9 +25,11 @@ Run time: Worst case O(n log n), close to O(n) in the mostly-sorted case. */ +#include "stddef.h" // for NULL + #define _BSD_SOURCE -#include <stdlib.h> -#include <string.h> +#include <stdlib.h> // for qsort_r +#include <string.h> // for size_t, memcpy #define ntz(x) __builtin_ctzl((x)) |
