]> gcc.gnu.org Git - gcc.git/commitdiff
boehm.cc: Undefine TRUE and FALSE.
authorTom Tromey <tromey@cygnus.com>
Tue, 24 Aug 1999 04:01:06 +0000 (04:01 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 24 Aug 1999 04:01:06 +0000 (04:01 +0000)
* boehm.cc: Undefine TRUE and FALSE.

* posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.

From-SVN: r28810

libjava/ChangeLog
libjava/boehm.cc
libjava/posix-threads.cc

index a3a6f50d3f62ad7c92c417b3663b3cd5bfae151a..d3a4f41ad0b7b8f50bfcea7c0a879ad15629356d 100644 (file)
@@ -1,3 +1,9 @@
+1999-08-23  Tom Tromey  <tromey@cygnus.com>
+
+       * boehm.cc: Undefine TRUE and FALSE.
+
+       * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
+
 1999-08-21  Tom Tromey  <tromey@cygnus.com>
 
        * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
index f73bf868017c8ffe8706c4b8478b6036695937e2..8d1e97442e9941ffead054bb437228ace7451b2f 100644 (file)
@@ -18,6 +18,11 @@ details.  */
 #include <java-field.h>
 #include <java-interp.h>
 
+// More nastiness: the GC wants to define TRUE and FALSE.  We don't
+// need the Java definitions (themselves a hack), so we undefine them.
+#undef TRUE
+#undef FALSE
+
 // We need to include gc_priv.h.  However, it tries to include
 // config.h if it hasn't already been included.  So we force the
 // inclusion of the Boehm config.h.
index 791c43bc7bb1ed6ddece9af7033533fdd6c9d059..7e721c57711eb021c07fd5904e3a12c96a4e6222 100644 (file)
@@ -92,7 +92,7 @@ _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu,
              
       r = pthread_cond_timedwait (cv, pmu, &ts);
       /* A timeout is a normal result.  */
-      if (r && errno == ETIME)
+      if (r && errno == ETIMEDOUT)
        r = 0;
     }
   return r;
This page took 0.073093 seconds and 5 git commands to generate.