SOURCES: xpcd-c.patch (NEW) - fix for gcc 4

qboosh qboosh at pld-linux.org
Wed Oct 18 00:59:20 CEST 2006


Author: qboosh                       Date: Tue Oct 17 22:59:20 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for gcc 4

---- Files affected:
SOURCES:
   xpcd-c.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xpcd-c.patch
diff -u /dev/null SOURCES/xpcd-c.patch:1.1
--- /dev/null	Wed Oct 18 00:59:20 2006
+++ SOURCES/xpcd-c.patch	Wed Oct 18 00:59:15 2006
@@ -0,0 +1,19 @@
+--- xpcd-2.09/xpcd/shmalloc.c.orig	1998-09-27 09:34:16.000000000 +0200
++++ xpcd-2.09/xpcd/shmalloc.c	2006-10-18 00:37:22.776749000 +0200
+@@ -89,11 +89,12 @@
+ sh_free(void *data)
+ {
+     int             size;
++    int            *datap = data;
+ 
+     if (shared_anonymous_mmap_works) {
+-	((int *) data)--;
+-	size = *(int *) data;
+-	munmap(data, size);
++	datap--;
++	size = *datap;
++	munmap(datap, size);
+     } else
+-	shmdt(data);
++	shmdt(datap);
+ }
================================================================


More information about the pld-cvs-commit mailing list