Index: /trunk/configure.ac
===================================================================
--- /trunk/configure.ac	(revision 393)
+++ /trunk/configure.ac	(revision 394)
@@ -12,5 +12,5 @@
 dnl start
 dnl
-AM_INIT_AUTOMAKE(samhain, 3.0.1)
+AM_INIT_AUTOMAKE(samhain, 3.0.2a)
 AC_DEFINE([SAMHAIN], 1, [Application is samhain])
 AC_CANONICAL_HOST
Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 393)
+++ /trunk/docs/Changelog	(revision 394)
@@ -1,2 +1,5 @@
+3.0.2a:
+	* Fix compile error on Solaris 10
+
 3.0.2:
 	* change sql init scripts to make bigint fields unsigned (problem
Index: /trunk/src/sh_processcheck.c
===================================================================
--- /trunk/src/sh_processcheck.c	(revision 393)
+++ /trunk/src/sh_processcheck.c	(revision 394)
@@ -30,5 +30,9 @@
  * which needs _POSIX_C_SOURCE >= 200112 for lstat()
  */
+#if defined(__sun) || defined(__sun__) || defined(sun)
+#define _XOPEN_SOURCE 500
+#else
 #define _XOPEN_SOURCE 600
+#endif
 
 #include <stdio.h>
