diff options
author | Stig S. Bakken <stig@php.net> | 1999-09-06 16:14:08 +0000 |
---|---|---|
committer | Stig S. Bakken <stig@php.net> | 1999-09-06 16:14:08 +0000 |
commit | 009025e00d073e70a9107183068bba31525c2159 (patch) | |
tree | b051cae4f99d5b1692a4850f6ea2840808c6023c /Zend/zend_alloc.c | |
parent | 4d5491e2857f80ad758716e6b0964cac3a514ac7 (diff) | |
download | php-git-009025e00d073e70a9107183068bba31525c2159.tar.gz |
* 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?
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <signal.h> +#ifdef HAVE_SIGNAL_H +# include <signal.h> #endif -#if HAVE_UNISTD_H -#include <unistd.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> #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); |