summaryrefslogtreecommitdiff
path: root/x11/xmx/patches/patch-bx
blob: 231b5b931382ea7f0dd036aee5fd4895409c80bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-bx,v 1.2 2011/07/03 20:15:59 dholland Exp $

- declare own functions properly, fixes LP64 problems

--- server/zb.h~	1997-09-29 15:54:22.000000000 -0400
+++ server/zb.h	2008-08-31 01:32:42.000000000 -0400
@@ -65,5 +65,8 @@ extern zb_t zb;
 **
 **	Note, cast here works around absence of buf.pub.h include in
 **	files that use this macro and no other buf routines.
+**
+**      which DOESN'T WORK, silly... copying decl of buf_split instead.
 */
-#define zb_split()	(chunk_t *)buf_split(zb.bp, 0)
+extern FUNC( chunk_t *, buf_split, (buffer_t *, uint_t));
+#define zb_split()	buf_split(zb.bp, 0)