Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6325aa
)
libsupport: fix sort_r.h to work on FreeBSD
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 15 Aug 2021 15:17:42 +0000
(11:17 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 15 Aug 2021 22:58:47 +0000
(18:58 -0400)
FreeBSD defines __GNU_SOURCE so this is not reliable marker that the
OS is using a glibc-style qsort_r(3).
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/sort_r.h
patch
|
blob
|
history
diff --git
a/lib/support/sort_r.h
b/lib/support/sort_r.h
index
156e990
..
3292a26
100644
(file)
--- a/
lib/support/sort_r.h
+++ b/
lib/support/sort_r.h
@@
-24,7
+24,7
@@
void sort_r(void *base, size_t nel, size_t width,
#define _SORT_R_INLINE inline
-#if (defined _
GNU_SOURCE || defined _
_gnu_hurd__ || defined __GNU__ || \
+#if (defined __gnu_hurd__ || defined __GNU__ || \
defined __linux__ || defined __MINGW32__ || defined __GLIBC__)
# define _SORT_R_LINUX
#elif (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || \