[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mp2] compilation errors with mod_perl-2.0.4 on OpenBSD


Simon Bertrang wrote:
src/modules/perl/modperl_apache_compat.h
 typedef unsigned long apr_os_thread_t;
 typedef void * apr_thread_mutex_t;
+typedef void * apr_thread_rwlock_t;
 #endif
Would not it better to just include the appropriate thread file headers from APR? Also, as you can that typedef is wrong :)

typedef struct apr_thread_rwlock_t apr_thread_rwlock_t;

As an added benefit, you don't have to come remember to add to this
when exposing threaded features.

~/dev/repos/asf/apr/apr/tags/0.9.17/include>
ls -1 apr_thread_*
apr_thread_cond.h
apr_thread_mutex.h
apr_thread_proc.h
apr_thread_rwlock.h


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.