]> granicus.if.org Git - php/commitdiff
Added #ifdef HAVE_SYSLOG_H around syslog function in the whole file to avoid link...
authorAnantha Kesari H Y <hyanantha@php.net>
Mon, 6 Jan 2003 05:59:17 +0000 (05:59 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Mon, 6 Jan 2003 05:59:17 +0000 (05:59 +0000)
ext/standard/basic_functions.c

index 93649e2590d17ac57f6aebfee7475a4160634afb..001849f17d4a77b5dbd56710a46390704328c597 100644 (file)
@@ -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);