apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Freeman \(saurik\)" <sau...@saurik.com>
Subject [PATCH] apr_intialize() doesn't work on Win32
Date Sat, 16 Mar 2002 19:38:04 GMT
There were some Unix specific threading code added to apr_initialize() at
some point, and WIN32 wasn't listed in the non-Unix OS's list.  Shouldn't
there be a UNIX define somewhere that can be used instead?  (If need be,
provided by a generic APR header; so as to get the list of "non-Unix" into a
single location?)

Index: start.c
===================================================================
RCS file: /home/cvspublic/apr/misc/unix/start.c,v
retrieving revision 1.63
diff -u -r1.63 start.c
--- start.c     13 Mar 2002 20:39:23 -0000      1.63
+++ start.c     16 Mar 2002 19:37:24 -0000
@@ -83,7 +83,7 @@
         return APR_SUCCESS;
     }

-#if !defined(BEOS) && !defined(OS2)
+#if !defined(BEOS) && !defined(OS2) && !defined(WIN32)
     apr_unix_setup_lock();
     apr_proc_mutex_unix_setup_lock();
     apr_unix_setup_time();

Sincerely,
Jay Freeman (saurik)
saurik@saurik.com


Mime
View raw message