-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msolve: more platforms, enable OpenMP
- Loading branch information
Showing
2 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 9c21db960fa677970d1cdd1d82d9e77b350fcb4f Mon Sep 17 00:00:00 2001 | ||
From: Max Horn <max@quendi.de> | ||
Date: Fri, 22 Oct 2021 23:30:31 +0200 | ||
Subject: [PATCH] Fix sort_r.h on muslc | ||
|
||
qsort_r is glibc specific, not Linux specific | ||
--- | ||
src/neogb/sort_r.h | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/src/neogb/sort_r.h b/src/neogb/sort_r.h | ||
index 7db3b64..b31435b 100644 | ||
--- a/src/neogb/sort_r.h | ||
+++ b/src/neogb/sort_r.h | ||
@@ -47,8 +47,7 @@ void sort_r(void *base, size_t nel, size_t width, | ||
#if (defined __APPLE__ || defined __MACH__ || defined __DARWIN__ || \ | ||
defined __FreeBSD__ || defined __DragonFly__) | ||
# define _SORT_R_BSD | ||
-#elif (defined _GNU_SOURCE || defined __gnu_hurd__ || defined __GNU__ || \ | ||
- defined __linux__ || defined __MINGW32__ || defined __GLIBC__) | ||
+#elif (defined __MINGW32__ || defined __GLIBC__) | ||
# define _SORT_R_LINUX | ||
#elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__) | ||
# define _SORT_R_WINDOWS | ||
-- | ||
2.33.1 | ||
|