From 0d9c0616f9bf1441cddadc1ff1e9870d2e1c09e0 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 28 May 2000 16:22:28 +0000 Subject: Use php_syslog() for system call. On OpenServer 5, syslog is defined to var_syslog/sys_syslog which causes various problems. Submitted by: Paul Gardiner --- main/php_syslog.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 main/php_syslog.h (limited to 'main/php_syslog.h') diff --git a/main/php_syslog.h b/main/php_syslog.h new file mode 100644 index 0000000000..f356ff5418 --- /dev/null +++ b/main/php_syslog.h @@ -0,0 +1,33 @@ +#ifndef PHP_SYSLOG_H +#define PHP_SYSLOG_H + +#ifdef PHP_WIN32 +#include "win32/syslog.h" +#include "win32/php_registry.h" +#else +#include +#endif + +/* + * SCO OpenServer 5 defines syslog to var_syslog/sys_syslog which + * causes trouble with our use of syslog. We define php_syslog + * to be the system function syslog. + */ + +#ifdef syslog + +#if defined(var_syslog) && var_syslog == syslog +#define php_syslog var_syslog +#elif defined(sys_syslog) && sys_syslog == syslog +#define php_syslog sys_syslog +#endif + +#endif + +#ifndef php_syslog +#define php_syslog syslog +#undef syslog +#endif + + +#endif -- cgit v1.2.1