patches/gkrellm-03-log.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 18110 93461edb1490
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

diff -Nrup gkrellm-2.3.2.mod.3/server/main.c gkrellm-2.3.2.mod.4/server/main.c
--- gkrellm-2.3.2.mod.3/server/main.c	2008-10-09 19:56:37.284510000 +0800
+++ gkrellm-2.3.2.mod.4/server/main.c	2008-10-09 20:07:54.465594000 +0800
@@ -27,6 +27,14 @@
 	#include <syslog.h>
 #endif // !WIN32
 
+/**********************************************************************
+ * Sun Solais doesn't seem to define LOG_MAKEPRI, so following compatibility code is provided.
+ **********************************************************************/
+
+#ifdef sun
+#define LOG_MAKEPRI(f, p)   (((f) << 3) | (p))
+#endif /* sun */
+
 // win32 defines addrinfo but only supports getaddrinfo call on winxp or newer
 #if !defined(HAVE_GETADDRINFO) && !defined(WIN32)
 struct addrinfo