From: Arun Raghavan Date: Thu, 20 Oct 2011 09:14:22 +0000 (+0530) Subject: native: Fix Solaris build X-Git-Tag: v1.99.1~224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce0eb18c29f0834356d6dbd322cb32b4eda9b96;p=platform%2Fupstream%2Fpulseaudio.git native: Fix Solaris build tcpwrappers has some Solaris-specific quirks that need to be dealt with. Patch submitted by Brian Cameron . --- diff --git a/src/pulsecore/socket-server.c b/src/pulsecore/socket-server.c index 23096a0..fd81c2a 100644 --- a/src/pulsecore/socket-server.c +++ b/src/pulsecore/socket-server.c @@ -45,8 +45,17 @@ #ifdef HAVE_LIBWRAP #include + +/* Solaris requires that the allow_severity and deny_severity variables be + * defined in the client program. */ +#ifdef __sun +#include +int allow_severity = LOG_INFO; +int deny_severity = LOG_WARNING; #endif +#endif /* HAVE_LIBWRAP */ + #include #include