Index: trunk/configure.ac
===================================================================
--- trunk/configure.ac	(revision 482)
+++ trunk/configure.ac	(revision 483)
@@ -12,5 +12,5 @@
 dnl start
 dnl
-AM_INIT_AUTOMAKE(samhain, 4.0.0.rc1)
+AM_INIT_AUTOMAKE(samhain, 4.1.0)
 AC_DEFINE([SAMHAIN], 1, [Application is samhain])
 AC_CANONICAL_HOST
Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 482)
+++ trunk/docs/Changelog	(revision 483)
@@ -1,3 +1,8 @@
+4.1.0:
+	* fix missing definition for a sh_dummy_ var on BSD et al.
+	(reported by Andrew)
+
 4.0.0:
+	* fix and document default settings for mounts check
 	* new -w CL option to wait on scan completion
 	* new option ReportCheckflags
Index: trunk/src/sh_dbIO.c
===================================================================
--- trunk/src/sh_dbIO.c	(revision 482)
+++ trunk/src/sh_dbIO.c	(revision 483)
@@ -413,4 +413,17 @@
 }
 
+static void hexdump(unsigned char * data, size_t size)
+{
+  unsigned int count =0;
+  char ith[3];
+
+  do {
+    int2hex(data[count], ith); ith[2] = '\0';
+    printf("%2s", ith);
+    ++count;
+    if (count % 40 == 0) putc('\n', stdout);
+  } while (count < size);
+}
+
 static size_t dbIO_fread_struct (sh_filestore_t * ptr, FILE *stream, 
 				 const char * path, int * errflag)
@@ -440,4 +453,6 @@
 	      char try[5];
 
+	      if (1 == 0)
+		hexdump((unsigned char *)&old_struct, sizeof(old_struct));
 	      memset(&try_struct, '\0', sizeof(try_struct));
 	      if (!memcmp(&old_struct, &try_struct, sizeof(try_struct)))
Index: trunk/src/sh_suidchk.c
===================================================================
--- trunk/src/sh_suidchk.c	(revision 482)
+++ trunk/src/sh_suidchk.c	(revision 483)
@@ -2347,5 +2347,5 @@
    * Avoids the 'clobbered by longjmp' warning. 
    */
-  sh_dummy_type = (void*) &type;
+  sh_dummy_2229_type = (void*) &type;
 
   while (type == NULL
@@ -2367,5 +2367,5 @@
    * Avoids the 'clobbered by longjmp' warning. 
    */
-  sh_dummy_type = (void*) &type;
+  sh_dummy_2229_type = (void*) &type;
 
   if (statfs (relpath, &fss, sizeof (struct statfs), 0) == -1)
@@ -2395,5 +2395,5 @@
    * Avoids the 'clobbered by longjmp' warning. 
    */
-  sh_dummy_type = (void*) &type;
+  sh_dummy_2229_type = (void*) &type;
 
   if (statvfs (relpath, &fss) == -1)
@@ -2436,5 +2436,5 @@
    * Avoids the 'clobbered by longjmp' warning. 
    */
-  sh_dummy_type = (void*) &type;
+  sh_dummy_2229_type = (void*) &type;
 
   if (S_ISLNK (statp->st_mode))
