# HG changeset patch # User Carl Byington # Date 1244494284 25200 # Node ID 8e17efed33c1d59e6f972a7216e3dab665ac4bed # Parent 94bde95d7e18c7e584d106f6d407f7f3c0331512 patch from Fridrich Strba to build on win32 diff -r 94bde95d7e18 -r 8e17efed33c1 ChangeLog --- a/ChangeLog Mon Jun 08 11:49:39 2009 -0700 +++ b/ChangeLog Mon Jun 08 13:51:24 2009 -0700 @@ -17,6 +17,7 @@ * make nested mime multipart/alternative to hold the text/html parts so the topmost level is almost always multipart/mixed. * the shared library interface should now be thread safe. + * patch from Fridrich Strba to build on win32. LibPST 0.6.37 (2009-04-17) =============================== diff -r 94bde95d7e18 -r 8e17efed33c1 src/define.h --- a/src/define.h Mon Jun 08 11:49:39 2009 -0700 +++ b/src/define.h Mon Jun 08 13:51:24 2009 -0700 @@ -89,6 +89,10 @@ #else #include "XGetopt.h" #endif + #include + #undef gmtime_r + #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) + #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) #else #ifdef HAVE_UNISTD_H #include diff -r 94bde95d7e18 -r 8e17efed33c1 src/readpst.c --- 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");