From 009025e00d073e70a9107183068bba31525c2159 Mon Sep 17 00:00:00 2001 From: "Stig S. Bakken" Date: Mon, 6 Sep 1999 16:14:08 +0000 Subject: * header file cleanup * fixed --enable-thread-safety build for UNIX I don't have a Win32 environment available, could someone please try compiling on Win32 to see if I got all the header file stuff right there? --- Zend/zend_alloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zend/zend_alloc.c') diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 29aa3bca69..97cc8801b1 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -23,11 +23,11 @@ #include "zend.h" #include "zend_alloc.h" #include "zend_globals.h" -#if HAVE_SIGNAL_H -#include +#ifdef HAVE_SIGNAL_H +# include #endif -#if HAVE_UNISTD_H -#include +#ifdef HAVE_UNISTD_H +# include #endif #ifndef ZTS @@ -124,7 +124,7 @@ ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) if (!p) { fprintf(stderr,"FATAL: emalloc(): Unable to allocate %ld bytes\n", (long) size); -#if ZEND_DEBUG && HAVE_KILL && HAVE_GETPID +#if ZEND_DEBUG && defined(HAVE_KILL) && defined(HAVE_GETPID) kill(getpid(), SIGSEGV); #else exit(1); -- cgit v1.2.1