Browse Source

Move <syslog.h> inclusion into php_syslog.h. This will make sure that

all source files "get it."
PHP-4.0.5
Sascha Schumann 27 years ago
parent
commit
2df8e7341e
  1. 3
      ext/standard/basic_functions.c
  2. 6
      ext/standard/php_syslog.h
  3. 5
      ext/standard/syslog.c

3
ext/standard/basic_functions.c

@ -44,9 +44,6 @@
#if HAVE_LOCALE_H
#include <locale.h>
#endif
#ifndef PHP_WIN32
#include <syslog.h> /* for possible syslog macro */
#endif
#include "safe_mode.h"
#ifdef PHP_WIN32
#include "win32/unistd.h"

6
ext/standard/php_syslog.h

@ -32,6 +32,12 @@
#if HAVE_SYSLOG_H
#ifdef PHP_WIN32
#include "win32/syslog.h"
#else
#include <syslog.h>
#endif
extern PHP_MINIT_FUNCTION(syslog);
extern PHP_RINIT_FUNCTION(syslog);
extern PHP_RSHUTDOWN_FUNCTION(syslog);

5
ext/standard/syslog.c

@ -26,11 +26,6 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef PHP_WIN32
#include "win32/syslog.h"
#else
#include <syslog.h>
#endif
#include <string.h>
#include <errno.h>

Loading…
Cancel
Save