From: James Moore Date: Sat, 10 Nov 2001 17:24:02 +0000 (+0000) Subject: Fix apache win32 dso build. X-Git-Tag: ChangeLog~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f787370005411d9ebc4a5a6c2a6f65084cfe68a;p=php Fix apache win32 dso build. (This is untested on linux but shouldnt break anything) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index bed3596a8b..83b3f73768 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -576,7 +576,7 @@ function_entry basic_functions[] = { PHP_FE(pclose, NULL) PHP_FE(popen, NULL) PHP_FE(readfile, NULL) -#if HAVE_MMAP +#ifdef HAVE_MMAP PHP_FE(mmapfile, NULL) #endif PHP_FE(rewind, NULL) diff --git a/ext/standard/file.c b/ext/standard/file.c index e4b91526ba..8669dfb099 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1634,7 +1634,7 @@ PHP_FUNCTION(readfile) /* }}} */ -#if HAVE_MMAP +#ifdef HAVE_MMAP /* {{{ proto string mmapfile (string filename [, int bytes_to_read]) Read a file into a variable with mmap */ diff --git a/ext/standard/file.h b/ext/standard/file.h index 853cf1342f..d9598ff118 100644 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@ -48,7 +48,7 @@ PHP_FUNCTION(mkdir); PHP_FUNCTION(rmdir); PHP_FUNCTION(fpassthru); PHP_FUNCTION(readfile); -#if HAVE_MMAP +#ifdef HAVE_MMAP PHP_FUNCTION(mmapfile); #endif PHP_FUNCTION(umask);