]> code.delx.au - pulseaudio/commitdiff
native: Fix Solaris build
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 20 Oct 2011 09:14:22 +0000 (14:44 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 20 Oct 2011 09:34:34 +0000 (15:04 +0530)
tcpwrappers has some Solaris-specific quirks that need to be dealt with.
Patch submitted by Brian Cameron <brian.cameron@oracle.com>.

src/pulsecore/socket-server.c

index 23096a0d5072fbd91c32551ffb39ec49395f9070..fd81c2ae3b0b473fb429730fc2937fe7e1c841b6 100644 (file)
 
 #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>