summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/swi-prolog-lite/files/swi-prolog-lite-5.5.39-packages-semweb-64bit.patch')
-rw-r--r--dev-lang/swi-prolog-lite/files/swi-prolog-lite-5.5.39-packages-semweb-64bit.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-lang/swi-prolog-lite/files/swi-prolog-lite-5.5.39-packages-semweb-64bit.patch b/dev-lang/swi-prolog-lite/files/swi-prolog-lite-5.5.39-packages-semweb-64bit.patch
new file mode 100644
index 000000000000..fc83911e8287
--- /dev/null
+++ b/dev-lang/swi-prolog-lite/files/swi-prolog-lite-5.5.39-packages-semweb-64bit.patch
@@ -0,0 +1,16 @@
+Index: packages/semweb/rdf_db.c
+===================================================================
+RCS file: /usr/local/cvspl/pl/packages/semweb/rdf_db.c,v
+retrieving revision 1.87
+diff -u -p -r1.87 rdf_db.c
+--- packages/semweb/rdf_db.c 12 Nov 2005 15:03:05 -0000 1.87
++++ packages/semweb/rdf_db.c 1 Dec 2005 08:52:40 -0000
+@@ -4842,7 +4842,7 @@ typedef struct agenda
+ } agenda;
+
+ #ifndef offsetof
+-#define offsetof(structure, field) ((int) &(((structure *)NULL)->field))
++#define offsetof(structure, field) ((unsigned long) &(((structure *)NULL)->field))
+ #endif
+ #define CHUNK_SIZE(n) offsetof(chunk, nodes[n])
+