From: short <>
Date: Mon, 18 Nov 2002 13:15:05 +0000 (+0000)
Subject: Remove threading
X-Git-Url: http://git.jankratochvil.net/?p=middleman.git;a=commitdiff_plain;h=8c97b07c3407abb81745acbce2e4948c9fa7cad1
Remove threading
---
diff --git a/README.html b/README.html
index 2d9e9fe..d8a8327 100644
--- a/README.html
+++ b/README.html
@@ -32,7 +32,7 @@ configuration files.
extracting the archive type "./configure && make", if you're
using a BSD operating system you will need to use "gmake" rather than
make, if that's unavailable as a last resort you can use BSD's make,
-then enter the "gcc -o mman *.o -pthread" command afterwards. There are
+then enter the "gcc -o mman *.o" command afterwards. There are
several compile-time options available for the configure script, type
"./configure --help" to see a complete list.
diff --git a/config.h.in b/config.h.in
index ac83587..e562053 100644
--- a/config.h.in
+++ b/config.h.in
@@ -3,7 +3,6 @@
#undef HAVE_GETHOSTBYNAME_R
#undef HAVE_INTTYPES_H
#undef HAVE_LIBNSL
-#undef HAVE_LIBPTHREAD
#undef HAVE_LIBRESOLV
#undef HAVE_LIBSOCKET
#undef HAVE_MEMORY_H
diff --git a/include/compat.h b/include/compat.h
index b2bedba..f7d3608 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -1,15 +1,21 @@
#ifndef COMPAT_H
#define COMPAT_H
-#ifndef HAVE_PTHREAD_RWLOCK_INIT
-/* pthread rwlock's aren't very portable, these will replace them with a slower alternative */
-#define pthread_rwlock_t pthread_mutex_t
-#define pthread_rwlock_init pthread_mutex_init
-#define pthread_rwlock_destroy pthread_mutex_destroy
-#define pthread_rwlock_rdlock pthread_mutex_lock
-#define pthread_rwlock_wrlock pthread_mutex_lock
-#define pthread_rwlock_unlock pthread_mutex_unlock
-#endif /* HAVE_PTHREAD_RWLOCK_INIT */
+#define pthread_mutex_t int
+#define PTHREAD_MUTEX_INITIALIZER 0
+#define pthread_attr_init(attr)
+#define pthread_attr_destroy(attr)
+#define pthread_attr_setdetachstate(attr,state)
+#define pthread_attr_setschedpolicy(attr,policy)
+#define pthread_mutex_init(mutex,attr)
+#define pthread_mutex_lock(mutex)
+#define pthread_mutex_unlock(mutex)
+#define pthread_rwlock_init(lock,attr)
+#define pthread_rwlock_destroy(lock)
+#define pthread_rwlock_rdlock(lock)
+#define pthread_rwlock_wrlock(lock)
+#define pthread_rwlock_unlock(lock)
+/* pthread_create(thread,attr,start_routine,arg) not ignorable */
#ifndef HAVE_POLL
diff --git a/include/proto.h b/include/proto.h
index 513205a..34394ee 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -5,7 +5,6 @@
#include "../config.h"
#include "../pcre/pcre.h"
#include "../pcre/pcreposix.h"
-#include
#ifdef HAVE_POLL
#include