added check for HAVE_LINUX_NETFILTER_IPV4_H

This commit is contained in:
2013-09-13 07:14:08 +00:00
parent ab062079d6
commit 7e98acf59f
5 changed files with 9 additions and 4 deletions

View File

@ -228,7 +228,7 @@ static int cgi_htrd_peek_script_output (qse_htrd_t* htrd, qse_htre_t* req)
qse_mchar_t* endptr;
/* TODO: check the syntax of status value??? if not numeric??? */
QSE_MSTRTONUM (nstatus, req->attr.status, &endptr, 10);
QSE_MBSTONUM (nstatus, req->attr.status, &endptr, 10);
snprintf (buf, QSE_COUNTOF(buf),
QSE_MT("HTTP/%d.%d %d "),

View File

@ -76,7 +76,9 @@
# endif
# if defined(__linux__)
# include <limits.h>
# include <linux/netfilter_ipv4.h> /* SO_ORIGINAL_DST */
# if defined(HAVE_LINUX_NETFILTER_IPV4_H)
# include <linux/netfilter_ipv4.h> /* SO_ORIGINAL_DST */
# endif
# if !defined(IP_TRANSPARENT)
# define IP_TRANSPARENT 19
# endif