diff options
author | osa <osa@FreeBSD.org> | 2013-12-04 02:08:20 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2013-12-04 02:08:20 +0800 |
commit | 0b110349bc297347f6783f400d90422eb56c31ff (patch) | |
tree | bb8e27ab3ecda37036829cea6e6ce617d3315544 /www | |
parent | 3cc71515a4c07d277a291b4b2fa137b6abe9ef7e (diff) | |
download | freebsd-ports-gnome-0b110349bc297347f6783f400d90422eb56c31ff.tar.gz freebsd-ports-gnome-0b110349bc297347f6783f400d90422eb56c31ff.tar.zst freebsd-ports-gnome-0b110349bc297347f6783f400d90422eb56c31ff.zip |
Fix syslog support.
Do not bump PORTREVISION cause syslog support disabled by default.
Patch from: rea
PR: ports/180639
Diffstat (limited to 'www')
-rw-r--r-- | www/nginx/files/extra-patch-syslog_support | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/www/nginx/files/extra-patch-syslog_support b/www/nginx/files/extra-patch-syslog_support index 019313f3214d..2a2ff607ff68 100644 --- a/www/nginx/files/extra-patch-syslog_support +++ b/www/nginx/files/extra-patch-syslog_support @@ -347,14 +347,16 @@ diff --git src/core/ngx_log.h src/core/ngx_log.h index 3233647..5e7fdbf 100644 --- src/core/ngx_log.h +++ src/core/ngx_log.h -@@ -12,6 +12,13 @@ +@@ -12,6 +12,15 @@ #include <ngx_config.h> #include <ngx_core.h> +#if (NGX_ENABLE_SYSLOG) +#include <syslog.h> + ++#ifndef SYSLOG_FACILITY +#define SYSLOG_FACILITY LOG_LOCAL5 ++#endif +#define ERR_SYSLOG_PRIORITY LOG_ERR +#endif + @@ -721,7 +723,7 @@ index 54e1c26..2b05157 100644 + SYSLOG_FACILITY="LOG_DAEMON" +fi +if test "${USE_SYSLOG}" = "YES"; then -+ CFLAGS="$CFLAGS -DUSE_SYSLOG -DSYSLOG_FACILITY=${SYSLOG_FACILITY}" ++ CFLAGS="$CFLAGS -DNGX_ENABLE_SYSLOG -DSYSLOG_FACILITY=${SYSLOG_FACILITY}" +fi cat << END > $NGX_MAKEFILE |