diff src/readpst.c @ 212:8e17efed33c1

patch from Fridrich Strba to build on win32
author Carl Byington <carl@five-ten-sg.com>
date Mon, 08 Jun 2009 13:51:24 -0700
parents 94bde95d7e18
children 4a659f3138b7
line wrap: on
line diff
--- a/src/readpst.c	Mon Jun 08 11:49:39 2009 -0700
+++ b/src/readpst.c	Mon Jun 08 13:51:24 2009 -0700
@@ -466,7 +466,11 @@
         // force a log file
         if (!d_log) d_log = "readpst.log";
     #endif // defined DEBUG_ALL
-    DEBUG_INIT(d_log, output_mutex);
+    #ifdef HAVE_SEMAPHORE_H
+        DEBUG_INIT(d_log, output_mutex);
+    #else
+        DEBUG_INIT(d_log, NULL);
+    #endif
     DEBUG_ENT("main");
 
     if (output_mode != OUTPUT_QUIET) printf("Opening PST file and indexes...\n");