pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/raptor2 raptor2: add SunOS support
details: https://anonhg.NetBSD.org/pkgsrc/rev/b58a3c7e7765
branches: trunk
changeset: 376701:b58a3c7e7765
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Apr 12 13:20:05 2022 +0000
description:
raptor2: add SunOS support
diffstat:
textproc/raptor2/distinfo | 3 +-
textproc/raptor2/patches/patch-src_sort__r.h | 45 ++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 1 deletions(-)
diffs (60 lines):
diff -r 3d1e8e791083 -r b58a3c7e7765 textproc/raptor2/distinfo
--- a/textproc/raptor2/distinfo Tue Apr 12 13:17:01 2022 +0000
+++ b/textproc/raptor2/distinfo Tue Apr 12 13:20:05 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.13 2021/10/26 11:23:19 nia Exp $
+$NetBSD: distinfo,v 1.14 2022/04/12 13:20:05 tnn Exp $
BLAKE2s (raptor2-2.0.15.tar.gz) = c24882035b615e21fd5ece74be5a565ee7a2dcd6f17619f18143e28727447759
SHA512 (raptor2-2.0.15.tar.gz) = 563dd01869eb4df8524ec12e2c0a541653874dcd834bd1eb265bc2943bb616968f624121d4688579cdce11b4f00a8ab53b7099f1a0850e256bb0a2c16ba048ee
Size (raptor2-2.0.15.tar.gz) = 1886657 bytes
+SHA1 (patch-src_sort__r.h) = 88d24885b841afe13c509870ed9f16229e8badc4
diff -r 3d1e8e791083 -r b58a3c7e7765 textproc/raptor2/patches/patch-src_sort__r.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/raptor2/patches/patch-src_sort__r.h Tue Apr 12 13:20:05 2022 +0000
@@ -0,0 +1,45 @@
+$NetBSD: patch-src_sort__r.h,v 1.1 2022/04/12 13:20:05 tnn Exp $
+
+SunOS support
+
+--- src/sort_r.h.orig 2014-10-09 23:00:44.000000000 +0000
++++ src/sort_r.h
+@@ -29,6 +29,8 @@ void sort_r(void *base, size_t nel, size
+ #elif (defined _GNU_SOURCE || defined __gnu_hurd__ || defined __GNU__ || \
+ defined __linux__ || defined __MINGW32__ || defined __GLIBC__)
+ # define _SORT_R_LINUX
++#elif defined __sun
++# define _SORT_R_SUN
+ #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
+ # define _SORT_R_WINDOWS
+ #else
+@@ -86,6 +88,11 @@ void sort_r(void *base, size_t nel, size
+ __compar_d_fn_t __compar, void *arg)
+ __attribute__((nonnull (1, 4)));
+
++ #elif defined _SORT_R_SUN
++
++ extern void qsort_r(void *base, size_t nel, size_t width,
++ int (*compar_arg)(const void *, const void *, void *), void *arg);
++
+ #endif
+
+ /* implementation */
+@@ -105,6 +112,10 @@ void sort_r(void *base, size_t nel, size
+ tmp.compar = compar;
+ qsort_r(base, nel, width, &tmp, sort_r_arg_swap);
+
++ #elif defined _SORT_R_SUN
++
++ qsort_r(base, nel, width, compar, arg);
++
+ #else /* defined _SORT_R_WINDOWS */
+
+ struct sort_r_data tmp;
+@@ -120,5 +131,6 @@ void sort_r(void *base, size_t nel, size
+ #undef _SORT_R_WINDOWS
+ #undef _SORT_R_LINUX
+ #undef _SORT_R_BSD
++#undef _SORT_R_SUN
+
+ #endif /* SORT_R_H_ */
Home |
Main Index |
Thread Index |
Old Index