From: Andi Gutmans Date: Sat, 23 Mar 2002 12:18:50 +0000 (+0000) Subject: - Fix build without ZTS. If someone has a nicer fix let me know. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1096 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e3ae4f61c1f08173dea35a190fc360d4d4b2e26;p=php - Fix build without ZTS. If someone has a nicer fix let me know. --- diff --git a/Zend/zend_ts_hash.c b/Zend/zend_ts_hash.c index 8d9cc3c99e..8fe36d3235 100644 --- a/Zend/zend_ts_hash.c +++ b/Zend/zend_ts_hash.c @@ -16,8 +16,9 @@ +----------------------------------------------------------------------+ */ -#include "zend_ts_hash.h" +#ifdef ZTS +#include "zend_ts_hash.h" /* ts management functions */ static void begin_read(TsHashTable *ht) @@ -336,4 +337,6 @@ void zend_ts_hash_display(TsHashTable *ht) zend_hash_display(&(ht->hash)); end_read(ht); } -#endif \ No newline at end of file +#endif + +#endif /* ZTS */ diff --git a/Zend/zend_ts_hash.h b/Zend/zend_ts_hash.h index 51472297df..abd8e032da 100644 --- a/Zend/zend_ts_hash.h +++ b/Zend/zend_ts_hash.h @@ -19,6 +19,8 @@ #ifndef ZEND_TS_HASH_H #define ZEND_TS_HASH_H +#ifdef ZTS + #include "zend.h" typedef struct _zend_ts_hashtable { @@ -112,4 +114,6 @@ END_EXTERN_C() zend_ts_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent) +#endif /* ZTS */ + #endif /* ZEND_HASH_H */