summaryrefslogtreecommitdiffstats
path: root/jnlib/w32-pth.h
diff options
context:
space:
mode:
Diffstat (limited to 'jnlib/w32-pth.h')
-rw-r--r--jnlib/w32-pth.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/jnlib/w32-pth.h b/jnlib/w32-pth.h
index efb17d255..bb010ae99 100644
--- a/jnlib/w32-pth.h
+++ b/jnlib/w32-pth.h
@@ -53,7 +53,7 @@ enum
/* Mutex values. */
#define PTH_MUTEX_INITIALIZED (1<<0)
#define PTH_MUTEX_LOCKED (1<<1)
-#define PTH_MUTEX_INIT {{NULL, NULL}, PTH_MUTEX_INITIALIZED, NULL, 0}
+#define PTH_MUTEX_INIT {PTH_MUTEX_INITIALIZED}
#define PTH_KEY_INIT (1<<0)
@@ -235,6 +235,12 @@ pth_event_t pth_event (unsigned long spec, ...);
+/* Backward compatibility (Pth < 1.5.0). */
+#define pth_event_occurred(ev) \
+ ( pth_event_status(ev) == PTH_STATUS_OCCURRED \
+ || pth_event_status(ev) == PTH_STATUS_FAILED )
+
+
/*-- pth_util.c --*/
/* void sigemptyset (struct sigset_s * ss); */