Group :: System/X11
RPM: liblbxutil
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: liblbxutil-1.1.0-alt-Xalloc.patch
Download
Download
diff -ur liblbxutil-1.1.0.old/src/delta/lbxdelta.c liblbxutil-1.1.0/src/delta/lbxdelta.c
--- liblbxutil-1.1.0.old/src/delta/lbxdelta.c 2013-02-14 11:28:14.000000000 +0000
+++ liblbxutil-1.1.0/src/delta/lbxdelta.c 2013-02-14 11:41:25.008256946 +0000
@@ -49,10 +49,9 @@
#define _HAVE_XALLOC_DECLS
#include <X11/Xdefs.h>
-extern pointer Xalloc(unsigned long /*amount*/);
-extern pointer Xcalloc(unsigned long /*amount*/);
-extern pointer Xrealloc(pointer /*ptr*/, unsigned long /*amount*/);
-extern void Xfree(pointer /*ptr*/);
+#include <stdlib.h>
+#define Xalloc(p) (malloc(p))
+#define Xfree(p) (free(p))
#endif
/*
diff -ur liblbxutil-1.1.0.old/src/lbx_zlib/lbx_zlib.h liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h
--- liblbxutil-1.1.0.old/src/lbx_zlib/lbx_zlib.h 2013-02-14 11:28:14.000000000 +0000
+++ liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h 2013-02-14 11:40:28.245793774 +0000
@@ -129,10 +129,9 @@
#define _HAVE_XALLOC_DECLS
#include <X11/Xdefs.h>
-extern pointer Xalloc(unsigned long /*amount*/);
-extern pointer Xcalloc(unsigned long /*amount*/);
-extern pointer Xrealloc(pointer /*ptr*/, unsigned long /*amount*/);
-extern void Xfree(pointer /*ptr*/);
+#include <stdlib.h>
+#define Xalloc(p) (malloc(p))
+#define Xfree(p) (free(p))
#endif
/* lbx_zlib.c */