]> granicus.if.org Git - apache/commitdiff
[Porting] Include <sys/mutex.h> if available, to get lock_t typedef for using <sys...
authorMartin Kraemer <martin@apache.org>
Wed, 28 May 2003 14:11:38 +0000 (14:11 +0000)
committerMartin Kraemer <martin@apache.org>
Wed, 28 May 2003 14:11:38 +0000 (14:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100070 13f79535-47bb-0310-9956-ffa450edef68

test/time-sem.c

index f75217d282eee0fc0e0b62e33e22bbf01a052238..89ca2b7e4307346e673637bc11024676aab79fc7 100644 (file)
@@ -417,6 +417,9 @@ static void *get_shared_mem(apr_size_t size)
 #else
 #include <sys/types.h>
 #include <sys/ipc.h>
+#ifdef HAVE_SYS_MUTEX_H
+#include <sys/mutex.h>
+#endif
 #include <sys/shm.h>
 
 static void *get_shared_mem(apr_size_t size)