]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Revert my last change. It was stupid, which I if I had been thinking clearly
authorDavid Lawrence <source@isc.org>
Tue, 26 Dec 2000 21:45:08 +0000 (21:45 +0000)
committerDavid Lawrence <source@isc.org>
Tue, 26 Dec 2000 21:45:08 +0000 (21:45 +0000)
I would have seen *before* I commited anything.  So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.

(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better.  I'll look into it more
later, AFTER vacation.)

lib/isc/task.c
lib/isc/timer.c
lib/isc/unix/app.c
lib/isc/unix/socket.c

index d0e5f4d32d62da2fbf6e10acd81d3541cf3fdd83..c4c6846c84530385e5741d6cf67c928165a3cd20 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: task.c,v 1.77 2000/12/26 21:12:21 tale Exp $ */
+/* $Id: task.c,v 1.78 2000/12/26 21:45:04 tale Exp $ */
 
 /*
  * Principal Author: Bob Halley
 
 #include <config.h>
 
+#include <isc/condition.h>
 #include <isc/event.h>
 #include <isc/mem.h>
 #include <isc/msgs.h>
 #include <isc/platform.h>
 #include <isc/string.h>
 #include <isc/task.h>
+#include <isc/thread.h>
 #include <isc/util.h>
 
-#ifdef ISC_PLATFORM_USETHREADS
-#include <isc/condition.h>
-#include <isc/thread.h>
-#else /* ISC_PLATFORM_USETHREADS */
+#ifndef ISC_PLATFORM_USETHREADS
 #include "task_p.h"
 #endif /* ISC_PLATFORM_USETHREADS */
 
index 1dbf74751b24fa0fee3cc793a2481e0128b982b9..449ea18195a079d8406412554c1a497879b849d4 100644 (file)
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: timer.c,v 1.60 2000/12/26 21:12:23 tale Exp $ */
+/* $Id: timer.c,v 1.61 2000/12/26 21:45:05 tale Exp $ */
 
 #include <config.h>
 
+#include <isc/condition.h>
 #include <isc/heap.h>
 #include <isc/mem.h>
 #include <isc/msgs.h>
 #include <isc/platform.h>
 #include <isc/task.h>
+#include <isc/thread.h>
 #include <isc/time.h>
 #include <isc/timer.h>
 #include <isc/util.h>
 
-#ifdef ISC_PLATFORM_USETHREADS
-#include <isc/condition.h>
-#include <isc/thread.h>
-#else /* ISC_PLATFORM_USETHREADS */
+#ifndef ISC_PLATFORM_USETHREADS
 #include "timer_p.h"
 #endif /* ISC_PLATFORM_USETHREADS */
 
index a251f42575076062b3c2568a3e20dc587567e72b..3676d25174dd8ebc43d2889b8cdeabfd101205a0 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: app.c,v 1.35 2000/12/26 21:12:24 tale Exp $ */
+/* $Id: app.c,v 1.36 2000/12/26 21:45:06 tale Exp $ */
 
 #include <config.h>
 
@@ -29,7 +29,9 @@
 
 #include <isc/app.h>
 #include <isc/boolean.h>
+#include <isc/condition.h>
 #include <isc/msgs.h>
+#include <isc/mutex.h>
 #include <isc/event.h>
 #include <isc/platform.h>
 #include <isc/string.h>
@@ -39,8 +41,6 @@
 
 #ifdef ISC_PLATFORM_USETHREADS
 #include <pthread.h>
-#include <isc/condition.h>
-#include <isc/mutex.h>
 #else /* ISC_PLATFORM_USETHREADS */
 #include "../timer_p.h"
 #include "../task_p.h"
index fc5d81183acb20724e478512faf79607e70c245d..8d582f6e85a0a08ada2dde753a16e15411a445a7 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.177 2000/12/26 21:12:25 tale Exp $ */
+/* $Id: socket.c,v 1.178 2000/12/26 21:45:08 tale Exp $ */
 
 #include <config.h>
 
 
 #include <isc/buffer.h>
 #include <isc/bufferlist.h>
+#include <isc/condition.h>
 #include <isc/list.h>
 #include <isc/log.h>
 #include <isc/mem.h>
 #include <isc/msgs.h>
+#include <isc/mutex.h>
 #include <isc/net.h>
 #include <isc/platform.h>
 #include <isc/print.h>
 #include <isc/region.h>
 #include <isc/socket.h>
 #include <isc/task.h>
+#include <isc/thread.h>
 #include <isc/util.h>
 
-#ifdef ISC_PLATFORM_USETHREADS
-#include <isc/condition.h>
-#include <isc/mutex.h>
-#include <isc/thread.h>
-#else /* ISC_PLATFORM_USETHREADS */
+#ifndef ISC_PLATFORM_USETHREADS
 #include "socket_p.h"
 #endif /* ISC_PLATFORM_USETHREADS */