From: Anantha Kesari H Y Date: Mon, 6 Jan 2003 05:59:17 +0000 (+0000) Subject: Added #ifdef HAVE_SYSLOG_H around syslog function in the whole file to avoid link... X-Git-Tag: PHP_5_0_dev_before_13561_fix~437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509b4d39b554718273c2d3d7e7329cc81d36f84a;p=php Added #ifdef HAVE_SYSLOG_H around syslog function in the whole file to avoid link failure. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 93649e2590..001849f17d 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1051,7 +1051,9 @@ PHP_MINIT_FUNCTION(basic) PHP_MINIT(lcg) (INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(dir) (INIT_FUNC_ARGS_PASSTHRU); +#ifdef HAVE_SYSLOG_H PHP_MINIT(syslog) (INIT_FUNC_ARGS_PASSTHRU); +#endif PHP_MINIT(array) (INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(assert) (INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(url_scanner_ex) (INIT_FUNC_ARGS_PASSTHRU); @@ -1148,7 +1150,9 @@ PHP_RINIT_FUNCTION(basic) PHP_RINIT(lcg) (INIT_FUNC_ARGS_PASSTHRU); PHP_RINIT(filestat) (INIT_FUNC_ARGS_PASSTHRU); +#ifdef HAVE_SYSLOG_H PHP_RINIT(syslog) (INIT_FUNC_ARGS_PASSTHRU); +#endif PHP_RINIT(dir) (INIT_FUNC_ARGS_PASSTHRU); PHP_RINIT(url_scanner_ex) (INIT_FUNC_ARGS_PASSTHRU); @@ -1180,7 +1184,9 @@ PHP_RSHUTDOWN_FUNCTION(basic) PHP_RSHUTDOWN(fsock) (SHUTDOWN_FUNC_ARGS_PASSTHRU); PHP_RSHUTDOWN(filestat) (SHUTDOWN_FUNC_ARGS_PASSTHRU); +#ifdef HAVE_SYSLOG_H PHP_RSHUTDOWN(syslog) (SHUTDOWN_FUNC_ARGS_PASSTHRU); +#endif PHP_RSHUTDOWN(assert) (SHUTDOWN_FUNC_ARGS_PASSTHRU); PHP_RSHUTDOWN(url_scanner_ex) (SHUTDOWN_FUNC_ARGS_PASSTHRU); PHP_RSHUTDOWN(streams) (SHUTDOWN_FUNC_ARGS_PASSTHRU);