diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-10-20 14:44:22 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-10-20 15:09:35 +0530 |
commit | a40a2af9ae3caf0b53b7826ecbf4737c51515079 (patch) | |
tree | c3f2691187ec86a21071b35f0e03b873638d8085 | |
parent | a4425135a5b1e3bf6583277484da3d334d320ed0 (diff) |
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>.
-rw-r--r-- | src/pulsecore/socket-server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pulsecore/socket-server.c b/src/pulsecore/socket-server.c index 23096a0d..fd81c2ae 100644 --- a/src/pulsecore/socket-server.c +++ b/src/pulsecore/socket-server.c @@ -45,8 +45,17 @@ #ifdef HAVE_LIBWRAP #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 /* HAVE_LIBWRAP */ + #include <pulse/xmalloc.h> #include <pulse/util.h> |