[syslog-ng] Solaris 10/SPARC patches for 2.0.6

Albert Chin syslog-ng at mlists.thewrittenword.com
Fri Dec 21 20:02:52 CET 2007


Attached are two patches for syslog-ng-2.0.6 on Solaris 10/SPARC with
the Sun C compiler:
  1. tests/unit/test_msgparse.c requires __STRING but assumes it
     exists.
  2. LOG_AUTHPRIV is not available on this platform.

-- 
albert chin (china at thewrittenword.com)
-------------- next part --------------
Index: tests/unit/test_msgparse.c
===================================================================
--- tests/unit/test_msgparse.c.orig	2007-12-21 19:00:44.757035283 +0000
+++ tests/unit/test_msgparse.c	2007-12-21 19:00:54.533695707 +0000
@@ -6,6 +6,10 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+#ifndef __STRING
+#define __STRING(x) #x
+#endif
+
 #define TEST_ASSERT(x, format, value, expected)		\
   do 				\
     { 				\
Index: tests/unit/test_filters.c
===================================================================
--- tests/unit/test_filters.c.orig	2007-12-21 19:00:44.768373056 +0000
+++ tests/unit/test_filters.c	2007-12-21 19:00:54.539952005 +0000
@@ -95,7 +95,9 @@
   testcase("<32> openvpn[2499]: PTHREAD support initialized", 0, filter_facility_new(facility_bits("auth")), 1);
   testcase("<32> openvpn[2499]: PTHREAD support initialized", 0, filter_facility_new(0x80000000 | (LOG_AUTH >> 3)), 1);
   testcase("<80> openvpn[2499]: PTHREAD support initialized", 0, filter_facility_new(facility_bits("authpriv")), 1);
+#ifdef LOG_AUTHPRIV
   testcase("<80> openvpn[2499]: PTHREAD support initialized", 0, filter_facility_new(0x80000000 | (LOG_AUTHPRIV >> 3)), 1);
+#endif
 
   testcase("<15> openvpn[2499]: PTHREAD support initialized", 0, filter_level_new(level_bits("debug") | level_bits("emerg")), 1);
   testcase("<15> openvpn[2499]: PTHREAD support initialized", 0, filter_level_new(level_bits("emerg")), 0);


More information about the syslog-ng mailing list