locale.h \
monetary.h \
mach-o/dyld.h \
+netdb.h \
pwd.h \
resolv.h \
signal.h \
PHP_GEN_BUILD_DIRS
PHP_GEN_GLOBAL_MAKEFILE
+AC_DEFINE([HAVE_BUILD_DEFS_H], 1, [ ])
+
$php_shtool mkdir -p pear/scripts
ALL_OUTPUT_FILES="php4.spec main/build-defs.h \
pear/scripts/phpize pear/scripts/php-config \
#ifdef COMPILE_DL_DBASE
ZEND_GET_MODULE(dbase)
-#if (WIN32|WINNT) && defined(THREAD_SAFE)
+#if defined(PHP_WIN32) && defined(THREAD_SAFE)
/*NOTE: You should have an odbc.def file where you
export DllMain*/
#ifndef PHP_DOTNET_H
#define PHP_DOTNET_H
-#if WIN32|WINNT
+#ifdef PHP_WIN32
PHP_MINIT_FUNCTION(DOTNET);
PHP_MSHUTDOWN_FUNCTION(DOTNET);
#define DOTNET_module_ptr NULL
-#endif /* Win32|WINNT */
+#endif /* PHP_WIN32 */
#define phpext_DOTNET_ptr DOTNET_module_ptr
#if (defined(REGEX) && REGEX == 1) || (!defined(REGEX))
-#if !(WIN32|WINNT)
+#ifndef PHP_WIN32
#ifndef PHP_NO_ALIASES
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
-#if WIN32|WINNT
+#ifdef PHP_WIN32
#include <winsock.h>
#else
#include <php_config.h>
-#include <build-defs.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#ifdef COMPILE_DL_FILEPRO
ZEND_GET_MODULE(filepro)
-#if (WIN32|WINNT) && defined(THREAD_SAFE)
+#if defined(PHP_WIN32) && defined(THREAD_SAFE)
/*NOTE: You should have an odbc.def file where you
export DllMain*/
*/
/* This just seems unessacary */
-#if (WIN32|WINNT)
+#if PHP_WIN32
#define ENABLE_GD_TTF
#else
#include "php_config.h"
{
#include "php.h"
#include "php_globals.h"
-//#include "ext/standard/php_standard.h"
#include "ext/standard/head.h"
#include "ext/standard/info.h"
-//#include "fopen-wrappers.h"
+#if 0
+#include "ext/standard/php_standard.h"
+#include "fopen-wrappers.h"
+#endif
#include "SAPI.h"
}
#ifdef PHP_WIN32
#include <winsock.h>
-#else
-#include "build-defs.h"
#endif
#ifdef HAVE_MMAP
#include <sys/mman.h>
#ifdef PHP_WIN32
#include <winsock.h>
-#else
-#include "build-defs.h"
#endif
#if HYPERWAVE
#if HAVE_IMAP
-#ifndef PHP_WIN32
-#include "build-defs.h"
-#endif
-
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
/* these are used for quota support */
# include "c-client.h" /* includes mail.h and rfc822.h */
#ifdef PHP_WIN32
#include <winsock.h>
-#else
-#include "build-defs.h"
+#endif
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+
+#if HAVE_NETDB_H
#include <netdb.h>
+#endif
+
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#if HAVE_MCAL
-#ifndef PHP_WIN32
-#include "build-defs.h"
-#endif
-
/* Functions accessable to PHP */
extern zend_module_entry php_mcal_module_entry;
#define php_mcal_module_ptr &php_mcal_module_entry
# include <sys/socket.h>
# define signal(a, b) NULL
#else
-# include "build-defs.h"
# if HAVE_SIGNAL_H
# include <signal.h>
# endif
} \
}
-#ifndef PHP_WIN32
-#include "build-defs.h"
-#endif
-
#include <fcntl.h>
#ifndef O_BINARY
#define ODBC_TYPE "Win32"
#define PHP_ODBC_TYPE ODBC_TYPE
-#else
-#include "build-defs.h"
#endif
/*
#define PHP_ORA_API
#endif
-#ifndef PHP_WIN32
-#include "build-defs.h"
-#endif
-
#ifdef ZTS
int ora_globals_id;
#else
#ifndef PHP_DOTNET_H
#define PHP_DOTNET_H
-#if WIN32|WINNT
+#ifdef PHP_WIN32
PHP_MINIT_FUNCTION(DOTNET);
PHP_MSHUTDOWN_FUNCTION(DOTNET);
#define DOTNET_module_ptr NULL
-#endif /* Win32|WINNT */
+#endif /* PHP_WIN32 */
#define phpext_DOTNET_ptr DOTNET_module_ptr
#include "ext/standard/info.h"
#include "SAPI.h"
-#if !defined(PHP_WIN32) && !defined(NETWARE)
-#include "build-defs.h"
-#endif
-
#if defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H
#include <stdlib.h>
#include <stdio.h>
#ifdef USE_WINSOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
#endif
-#else
-#include "build-defs.h"
#endif
/* {{{ php_lookup_hostname */
#include "SAPI.h"
#include <time.h>
#include "php_main.h"
-#if !defined(PHP_WIN32) && !defined(NETWARE)
-#include "build-defs.h"
-#endif
#include "zend_globals.h" /* needs ELS */
#include "zend_extensions.h"
#ifdef HAVE_SYS_UTSNAME_H
#include <stdio.h>
#include "php.h"
#include "ext/standard/info.h"
-#if !defined(PHP_WIN32) && !defined(NETWARE)
-#include "build-defs.h"
+
#if HAVE_SYSEXITS_H
#include <sysexits.h>
#endif
#if HAVE_SYS_SYSEXITS_H
#include <sys/sysexits.h>
#endif
-#endif
+
#include "php_mail.h"
#include "php_ini.h"
#include "safe_mode.h"
#if HAVE_LIBEXPAT
-#if !defined(PHP_WIN32) && !defined(NETWARE)
-# include "build-defs.h"
-# endif
# include "ext/standard/head.h"
/* Short-term TODO list:
#ifdef USE_WINSOCK
#include <novsock2.h>
#endif
-#else
-#include "build-defs.h"
#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef NETWARE
-#define PHP_UNAME "NetWare" /* For php_get_uname() function */
-#define PHP_OS PHP_UNAME /* This is obtained using 'uname' on Unix and assigned in the case of Windows;
- we'll do it this way atleast for now */
+/* For php_get_uname() function */
+#define PHP_UNAME "NetWare"
+/*
+ * This is obtained using uname(2) on Unix and assigned in the case of Windows;
+ * we'll do it this way at least for now.
+ */
+#define PHP_OS PHP_UNAME
#endif
#include "php_regex.h"
#include <alloca.h>
#endif
+#if HAVE_BUILD_DEFS_H
+#include "build-defs.h"
+#endif
+
/*
* This is a fast version of strlcpy which should be used, if you
* know the size of the destination buffer and if you know
#define INI_CHECK_CWD
#include "php.h"
-#if !defined(PHP_WIN32) && !defined(NETWARE)
-#include "build-defs.h"
-#endif
#include "ext/standard/info.h"
#include "zend_ini.h"
#include "php_ini.h"
#ifdef PHP_WIN32
#define EWOULDBLOCK WSAEWOULDBLOCK
-#else
-#include "build-defs.h"
#endif
#define STREAM_DEBUG 0
#if (defined(REGEX) && REGEX == 1) || (!defined(REGEX))
-#if !(WIN32|WINNT)
+#ifndef PHP_WIN32
#ifndef PHP_NO_ALIASES
#if defined(PHP_WIN32) || defined(NETWARE)
#include "zend.h"
#include "ap_compat.h"
-#else
-#include "build-defs.h"
#endif
#ifdef ZTS
#include "win32/time.h"
#include "win32/signal.h"
#include <process.h>
-#else
-#include "build-defs.h"
#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#include "win32/time.h"
#include "win32/signal.h"
#include <process.h>
-#else
-#include "build-defs.h"
#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#include "win32/time.h"
#include "win32/signal.h"
#include <process.h>
-#else
-#include "build-defs.h"
#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>