Date: 10/23/00
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] zlib.c problem"
- Previous message: Scott Martin: "Re: [PHP-DEV] zlib.c problem"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] /ext/zlib can not be compiled in latest CVS"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] /ext/zlib can not be compiled in latest CVS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
just more typos.
it doesn't work that way as php.h includes zend.h and it includes stdio
and it includes libio.h :)
so you should include libio.h (or stdio) *before* php.h if you are going
to make _GNU_SOURCE tricks.
Or define _GNU_SOURCE directly in php.h (or zend.h but before #include
<stdio.h>)...
Best,
Oleg
--- ext/zlib/zlib.c.orig Mon Oct 23 12:06:58 2000
+++ ext/zlib/zlib.c Mon Oct 23 16:40:16 2000
@@ -19,13 +19,15 @@
/* $Id: zlib.c,v 1.58 2000/10/21 19:18:55 andi Exp $ */
#define IS_EXT_MODULE
-#include "php.h"
+#include "php_config.h"
#if HAVE_FOPENCOOKIE
#define _GNU_SOURCE
#define __USE_GNU
#include "libio.h"
#endif
+
+#include "php.h"
#include <stdio.h>
#include <stdlib.h>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] zlib.c problem"
- Previous message: Scott Martin: "Re: [PHP-DEV] zlib.c problem"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] /ext/zlib can not be compiled in latest CVS"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] /ext/zlib can not be compiled in latest CVS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

