[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: cvs commit: apr/locks/os2 proc_mutex.c
From: bjh () apache ! org
Date: 2001-09-25 11:42:46
[Download RAW message or body]
bjh 01/09/25 04:42:46
Modified: include apr_proc_mutex.h
locks/os2 proc_mutex.c
Log:
Add suitable #if protection to non-portable function
apr_proc_mutex_create_np()
Revision Changes Path
1.2 +3 -0 apr/include/apr_proc_mutex.h
Index: apr_proc_mutex.h
===================================================================
RCS file: /home/cvs/apr/include/apr_proc_mutex.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- apr_proc_mutex.h 2001/09/19 20:06:43 1.1
+++ apr_proc_mutex.h 2001/09/25 11:42:46 1.2
@@ -111,10 +111,13 @@
* </PRE>
* @param pool the pool from which to allocate the mutex.
*/
+#if APR_HAS_LOCK_CREATE_NP
APR_DECLARE(apr_status_t) apr_proc_mutex_create_np(apr_proc_mutex_t **mutex,
const char *fname,
apr_lockmech_e_np mech,
apr_pool_t *pool);
+#endif
+
/**
* Re-open a mutex in a child process.
* @param mutex The newly re-opened mutex structure.
1.2 +2 -0 apr/locks/os2/proc_mutex.c
Index: proc_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/os2/proc_mutex.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- proc_mutex.c 2001/09/19 20:06:44 1.1
+++ proc_mutex.c 2001/09/25 11:42:46 1.2
@@ -67,6 +67,7 @@
return APR_ENOTIMPL;
}
+#if APR_HAS_LOCK_CREATE_NP
APR_DECLARE(apr_status_t) apr_proc_mutex_create_np(apr_proc_mutex_t **mutex,
const char *fname,
apr_lockmech_e_np mech,
@@ -74,6 +75,7 @@
{
return APR_ENOTIMPL;
}
+#endif
APR_DECLARE(apr_status_t) apr_proc_mutex_child_init(apr_proc_mutex_t **mutex,
const char *fname,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic