summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/delta/lbxdelta.c11
-rw-r--r--src/lbx_zlib/lbx_zlib.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/src/delta/lbxdelta.c b/src/delta/lbxdelta.c
index 5085d33..78a1c74 100644
--- a/src/delta/lbxdelta.c
+++ b/src/delta/lbxdelta.c
@@ -44,6 +44,17 @@ extern struct ReqStats LbxRequestStats[LbxNumberReqs];
#define LBX_CODE 136 /* XXX - this should not be hardcoded - on todo list */
#endif
+/* Copied from xc/programs/Xserver/include/xorg/os.h */
+#ifndef _HAVE_XALLOC_DECLS
+#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*/);
+#endif
+
/*
* Allocate data structures needed for doing Delta compaction
*/
diff --git a/src/lbx_zlib/lbx_zlib.h b/src/lbx_zlib/lbx_zlib.h
index 8c4f195..68b94f8 100644
--- a/src/lbx_zlib/lbx_zlib.h
+++ b/src/lbx_zlib/lbx_zlib.h
@@ -123,3 +123,14 @@ extern void FreeInput ( ZlibBufferPtr inbuf, int len );
extern void CommitOutBuf ( ZlibBufferPtr outbuf, int outlen );
extern int FlushOutBuf ( int fd, ZlibBufferPtr outbuf );
extern int FlushIovBuf ( int fd, struct iovec *iovbuf );
+
+/* Copied from xc/programs/Xserver/include/xorg/os.h */
+#ifndef _HAVE_XALLOC_DECLS
+#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*/);
+#endif