summaryrefslogtreecommitdiff
path: root/main/php_syslog.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-06-09 17:21:40 +0000
committerSascha Schumann <sas@php.net>2000-06-09 17:21:40 +0000
commit8f58728e2b334f2d7a1bc576fc9abb502503fa69 (patch)
treeba2988843326e1dc5e037ef15f1f5185d9fbf8cd /main/php_syslog.h
parentb98d2a8261a25ebbddb1a8e2bef4e0902b09a89d (diff)
downloadphp-git-8f58728e2b334f2d7a1bc576fc9abb502503fa69.tar.gz
Real fix for std_syslog issue on OpenServer. This is limited to the native
development system (/bin/cc and icc) and does not show up with the UDK.
Diffstat (limited to 'main/php_syslog.h')
-rw-r--r--main/php_syslog.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/main/php_syslog.h b/main/php_syslog.h
index c9abb8f0c6..cf70159133 100644
--- a/main/php_syslog.h
+++ b/main/php_syslog.h
@@ -7,26 +7,23 @@
#include <syslog.h>
#endif
-/*
- * SCO OpenServer 5 defines syslog to var_syslog/std_syslog which
- * causes trouble with our use of syslog. We define php_syslog
- * to be the system function syslog.
+/*
+ * The SCO OpenServer 5 Development System (not the UDK)
+ * defines syslog to std_syslog.
*/
#ifdef syslog
-#if defined(var_syslog) && var_syslog == syslog
-#define php_syslog var_syslog
-#elif defined(std_syslog) && std_syslog == syslog
+#ifdef HAVE_STD_SYSLOG
#define php_syslog std_syslog
#endif
+#undef syslog
+
#endif
#ifndef php_syslog
#define php_syslog syslog
-#undef syslog
#endif
-
#endif