$OpenBSD: patch-lib_sort_r_sort_r_h,v 1.1.1.1 2017/07/11 18:50:19 landry Exp $

Index: lib/sort_r/sort_r.h
--- lib/sort_r/sort_r.h.orig
+++ lib/sort_r/sort_r.h
@@ -24,14 +24,13 @@ void sort_r(void *base, size_t nel, size_t width,
 
 */
 
+#  define _SORT_R_INLINE inline
 #if (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || \
      defined __FreeBSD__ || defined __DragonFly__)
 #  define _SORT_R_BSD
-#  define _SORT_R_INLINE inline
 #elif (defined _GNU_SOURCE || defined __gnu_hurd__ || defined __GNU__ || \
        defined __linux__ || (defined __MINGW32__ && !defined __MINGW64_VERSION_MAJOR) || defined __GLIBC__)
 #  define _SORT_R_LINUX
-#  define _SORT_R_INLINE inline
 #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
 #  define _SORT_R_WINDOWS
 #  define _SORT_R_INLINE __inline
