1diff -Nur misc/build/raptor2-2.0.15/src/raptor_libxml.c misc/build/raptor2-2.0.15/src/raptor_libxml.c
2--- misc/build/raptor2-2.0.15/src/raptor_libxml.c	2024-04-14 16:02:17.001795000 +0200
3+++ misc/build/raptor2-2.0.15/src/raptor_libxml.c	2024-04-14 17:33:11.733451000 +0200
4@@ -246,10 +246,10 @@
5
6     ret->owner = 1;
7
8-#if LIBXML_VERSION >= 20627
9+#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100
10     /* Checked field was released in 2.6.27 on 2006-10-25
11      * http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6
12-     *
13+     * and removed in version 2.11.0...
14      */
15
16     /* Mark this entity as having been checked - never do this again */
17diff -Nur misc/build/raptor2-2.0.15/src/raptor_parse.c misc/build/raptor2-2.0.15/src/raptor_parse.c
18--- misc/build/raptor2-2.0.15/src/raptor_parse.c	2024-04-14 16:02:17.005682000 +0200
19+++ misc/build/raptor2-2.0.15/src/raptor_parse.c	2024-04-14 16:01:17.838736000 +0200
20@@ -257,7 +257,7 @@
21 int
22 raptor_world_get_parsers_count(raptor_world* world)
23 {
24-  RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL);
25+  RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, (int)NULL);
26
27   raptor_world_open(world);
28
29diff -Nur misc/build/raptor2-2.0.15/src/raptor_serialize.c misc/build/raptor2-2.0.15/src/raptor_serialize.c
30--- misc/build/raptor2-2.0.15/src/raptor_serialize.c	2024-04-14 16:02:17.000076000 +0200
31+++ misc/build/raptor2-2.0.15/src/raptor_serialize.c	2024-04-14 16:03:45.447050000 +0200
32@@ -240,7 +240,7 @@
33 int
34 raptor_world_get_serializers_count(raptor_world* world)
35 {
36-  RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL);
37+  RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, (int)NULL);
38
39   raptor_world_open(world);
40
41diff -Nur misc/build/raptor2-2.0.15/src/sort_r.h misc/build/raptor2-2.0.15/src/sort_r.h
42--- misc/build/raptor2-2.0.15/src/sort_r.h	2024-04-14 16:02:17.006876000 +0200
43+++ misc/build/raptor2-2.0.15/src/sort_r.h	2024-04-14 17:12:40.890101000 +0200
44@@ -24,10 +24,10 @@
45      defined OpenBSD3_1 || defined OpenBSD3_9 || defined __OpenBSD__ || \
46      defined __NetBSD__ || \
47      defined __DragonFly__ || \
48-     defined AMIGA)
49+     defined AMIGA) && !defined(qsort_r)
50 #  define _SORT_R_BSD
51 #elif (defined _GNU_SOURCE || defined __gnu_hurd__ || defined __GNU__ || \
52-       defined __linux__ || defined __MINGW32__ || defined __GLIBC__)
53+       defined __linux__ || defined __MINGW32__ || defined __GLIBC__ || defined(qsort_r))
54 #  define _SORT_R_LINUX
55 #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
56 #  define _SORT_R_WINDOWS
57@@ -82,7 +82,7 @@
58   #elif defined _SORT_R_LINUX
59
60     typedef int(* __compar_d_fn_t)(const void *, const void *, void *);
61-    extern void qsort_r(void *base, size_t nel, size_t width,
62+    extern void (qsort_r)(void *base, size_t nel, size_t width,
63                         __compar_d_fn_t __compar, void *arg)
64       __attribute__((nonnull (1, 4)));
65
66