1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/main/php_syslog.h
2000-06-01 00:48:28 +00:00

33 lines
558 B
C

#ifndef PHP_SYSLOG_H
#define PHP_SYSLOG_H
#ifdef PHP_WIN32
#include "win32/syslog.h"
#else
#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.
*/
#ifdef syslog
#if defined(var_syslog) && var_syslog == syslog
#define php_syslog var_syslog
#elif defined(std_syslog) && std_syslog == syslog
#define php_syslog std_syslog
#endif
#endif
#ifndef php_syslog
#define php_syslog syslog
#undef syslog
#endif
#endif