summaryrefslogtreecommitdiff
path: root/src/lbx_zlib/lbx_zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lbx_zlib/lbx_zlib.h')
-rw-r--r--src/lbx_zlib/lbx_zlib.h11
1 files changed, 11 insertions, 0 deletions
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