native: Fix Solaris build

tcpwrappers has some Solaris-specific quirks that need to be dealt with.
Patch submitted by Brian Cameron <brian.cameron@oracle.com>.
This commit is contained in:
Arun Raghavan 2011-10-20 14:44:22 +05:30
parent d80a3cf56e
commit 4ce0eb18c2

View file

@ -45,8 +45,17 @@
#ifdef HAVE_LIBWRAP #ifdef HAVE_LIBWRAP
#include <tcpd.h> #include <tcpd.h>
/* Solaris requires that the allow_severity and deny_severity variables be
* defined in the client program. */
#ifdef __sun
#include <syslog.h>
int allow_severity = LOG_INFO;
int deny_severity = LOG_WARNING;
#endif #endif
#endif /* HAVE_LIBWRAP */
#include <pulse/xmalloc.h> #include <pulse/xmalloc.h>
#include <pulse/util.h> #include <pulse/util.h>