FreeBSD Bugzilla – Attachment 197107 Details for
Bug 231256
[exp-run] Change qsort_r(3) to match glibc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Crude patch to keep raptor2 buildable?
raptor2.diff (text/plain), 1.32 KB, created by
Ed Schouten
on 2018-09-15 09:53:28 UTC
(
hide
)
Description:
Crude patch to keep raptor2 buildable?
Filename:
MIME Type:
Creator:
Ed Schouten
Created:
2018-09-15 09:53:28 UTC
Size:
1.32 KB
patch
obsolete
>--- src/sort_r.h >+++ src/sort_r.h >@@ -24,10 +24,11 @@ > defined OpenBSD3_1 || defined OpenBSD3_9 || defined __OpenBSD__ || \ > defined __NetBSD__ || \ > defined __DragonFly__ || \ >- defined AMIGA) >+ defined AMIGA) && !defined(qsort_r) > # define _SORT_R_BSD > #elif (defined _GNU_SOURCE || defined __gnu_hurd__ || defined __GNU__ || \ >- defined __linux__ || defined __MINGW32__ || defined __GLIBC__) >+ defined __linux__ || defined __MINGW32__ || defined __GLIBC__) || \ >+ defined(qsort_r) > # define _SORT_R_LINUX > #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__) > # define _SORT_R_WINDOWS >@@ -64,7 +65,7 @@ > #if defined _SORT_R_BSD > > /* BSD requires argument swap */ >- extern void qsort_r(void *base, size_t nel, size_t width, void *thunk, >+ extern void (qsort_r)(void *base, size_t nel, size_t width, void *thunk, > int (*compar)(void *_thunk, const void *_a, const void *_b)); > > struct sort_r_data >@@ -82,7 +83,7 @@ > #elif defined _SORT_R_LINUX > > typedef int(* __compar_d_fn_t)(const void *, const void *, void *); >- extern void qsort_r(void *base, size_t nel, size_t width, >+ extern void (qsort_r)(void *base, size_t nel, size_t width, > __compar_d_fn_t __compar, void *arg) > __attribute__((nonnull (1, 4))); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231256
:
197013
| 197107