summaryrefslogtreecommitdiff
path: root/recipes/cherokee/cherokee-0.5.3/util.patch
blob: c7b1d15113ac417fe2ab1b19caaccc123f1d997e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#
# Patch managed by http://www.xwaves.net
#

Index: cherokee-0.5.3/cherokee/util.c
===================================================================
--- cherokee-0.5.3.orig/cherokee/util.c	2006-04-01 17:58:59.000000000 +0200
+++ cherokee-0.5.3/cherokee/util.c	2006-05-23 20:37:12.000000000 +0200
@@ -32,6 +32,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <errno.h>
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -385,9 +386,9 @@
 
 
 
-#if defined(HAVE_PTHREAD) && !defined(HAVE_READDIR_R)
+/*#if defined(HAVE_PTHREAD) && !defined(HAVE_READDIR_R)*/
 static pthread_mutex_t readdir_mutex = PTHREAD_MUTEX_INITIALIZER;
-#endif
+/*#endif*/
 
 /* The readdir subroutine is reentrant when an application program
  * uses different DirectoryPointer parameter values (returned from the