summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2003-01-06 05:59:17 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2003-01-06 05:59:17 +0000
commit509b4d39b554718273c2d3d7e7329cc81d36f84a (patch)
treea8c7fa2dbab676d60c7e4ae42942efdab5ee1e28 /ext/standard
parente6003eba60a8e74b2110efd567b4c6ac9113fd9e (diff)
downloadphp-git-509b4d39b554718273c2d3d7e7329cc81d36f84a.tar.gz
Added #ifdef HAVE_SYSLOG_H around syslog function in the whole file to avoid link failure.
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/basic_functions.c6
1 files changed, 6 insertions, 0 deletions
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);