* boehm.cc: Undefine TRUE and FALSE.
* posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
From-SVN: r28810
+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
#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.
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;