You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gs...@apache.org on 2016/11/17 08:29:24 UTC

svn commit: r1770128 - /apr/apr/branches/1.6.x/test/testprocmutex.c

Author: gsmith
Date: Thu Nov 17 08:29:24 2016
New Revision: 1770128

URL: http://svn.apache.org/viewvc?rev=1770128&view=rev
Log:
We may not have fork but we still need lockmech_t

Modified:
    apr/apr/branches/1.6.x/test/testprocmutex.c

Modified: apr/apr/branches/1.6.x/test/testprocmutex.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/test/testprocmutex.c?rev=1770128&r1=1770127&r2=1770128&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/test/testprocmutex.c (original)
+++ apr/apr/branches/1.6.x/test/testprocmutex.c Thu Nov 17 08:29:24 2016
@@ -25,6 +25,11 @@
 #include <stdlib.h>
 #include "testutil.h"
 
+typedef struct lockmech {
+    apr_lockmech_e num;
+    const char *name;
+} lockmech_t;
+
 #if APR_HAS_FORK
 
 #define MAX_ITER 200
@@ -35,11 +40,6 @@
 static apr_proc_mutex_t *proc_lock;
 static volatile int *x;
 
-typedef struct lockmech {
-    apr_lockmech_e num;
-    const char *name;
-} lockmech_t;
-
 /* a slower more racy way to implement (*x)++ */
 static int increment(int n)
 {