summaryrefslogtreecommitdiff
path: root/www/php3/patches/patch-ab
blob: 7bb4a0095018f132a6616c7c71a8772953b812c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.2 2002/01/10 13:17:12 jlam Exp $

--- php.h.orig	Mon Apr 10 12:29:36 2000
+++ php.h
@@ -326,6 +326,24 @@
 # endif
 #endif
 
+#ifndef PHP_INTERNAL_FUNCS
+#undef PUTS
+#undef PUTC
+#undef PHPWRITE
+#undef BLOCK_INTERRUPTIONS
+#undef UNBLOCK_INTERRUPTIONS
+extern PHPAPI void _php3_puts(const char *s);
+extern PHPAPI void _php3_putc(char c);
+extern PHPAPI int _php3_write(const void *a, int n);
+extern PHPAPI void _php3_block_interruptions(void);
+extern PHPAPI void _php3_unblock_interruptions(void);
+#define PUTS(a) _php3_puts(a)
+#define PUTC(a) _php3_putc(a)
+#define PHPWRITE(a,n) _php3_write((a),(n))
+#define BLOCK_INTERRUPTIONS _php3_block_interruptions()
+#define UNBLOCK_INTERRUPTIONS _php3_unblock_interruptions()
+#endif
+
 #define E_ERROR 0x1
 #define E_WARNING 0x2
 #define E_PARSE 0x4