Remove threading
authorshort <>
Mon, 18 Nov 2002 13:15:05 +0000 (13:15 +0000)
committershort <>
Mon, 18 Nov 2002 13:15:05 +0000 (13:15 +0000)
README.html
config.h.in
include/compat.h
include/proto.h

index 2d9e9fe..d8a8327 100644 (file)
@@ -32,7 +32,7 @@ configuration files.<br>
 extracting the archive type "./configure &amp;&amp; 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.<br>
 <br>
index ac83587..e562053 100644 (file)
@@ -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
index b2bedba..f7d3608 100644 (file)
@@ -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
 
index 513205a..34394ee 100644 (file)
@@ -5,7 +5,6 @@
 #include "../config.h"
 #include "../pcre/pcre.h"
 #include "../pcre/pcreposix.h"
-#include <pthread.h>
 
 #ifdef HAVE_POLL
 #include <sys/poll.h>