Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37804935
en ru br
Репозитории ALT
S:1.1.0-alt4
5.1: 1.0.1-alt1
4.1: 1.0.1-alt1
4.0: 1.0.1-alt1
www.altlinux.org/Changes

Группа :: Система/X11
Пакет: liblbxutil

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: liblbxutil-1.1.0-alt-Xalloc.patch
Скачать


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 */
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin