summaryrefslogtreecommitdiff
path: root/main/php_syslog.h
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2017-08-09 20:55:25 -0600
committerAnatol Belski <ab@php.net>2017-08-19 13:51:44 +0200
commita1f3a0105d885879102d366de506c353a75c8d04 (patch)
tree4962cf151b72803c608a2c5d66b18897cdefa00c /main/php_syslog.h
parente7c85fc3e67aed78a31d6c61dec317940796a4bf (diff)
downloadphp-git-a1f3a0105d885879102d366de506c353a75c8d04.tar.gz
Turn php_syslog() into wrapper for syslog and split lines
Diffstat (limited to 'main/php_syslog.h')
-rw-r--r--main/php_syslog.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/main/php_syslog.h b/main/php_syslog.h
index be68cc499a..4c4ca4eeb1 100644
--- a/main/php_syslog.h
+++ b/main/php_syslog.h
@@ -21,6 +21,8 @@
#ifndef PHP_SYSLOG_H
#define PHP_SYSLOG_H
+#include "php.h"
+
#ifdef PHP_WIN32
#include "win32/syslog.h"
#else
@@ -30,26 +32,12 @@
#endif
#endif
-/*
- * The SCO OpenServer 5 Development System (not the UDK)
- * defines syslog to std_syslog.
- */
-
-#ifdef syslog
-
-#ifdef HAVE_STD_SYSLOG
-#define php_syslog std_syslog
-#endif
-
-#undef syslog
+BEGIN_EXTERN_C()
+PHPAPI void php_syslog(int, const char *format, ...);
+END_EXTERN_C()
#endif
-#ifndef php_syslog
-#define php_syslog syslog
-#endif
-
-#endif
/*
* Local variables:
* tab-width: 4