platform_unix.c
changeset 64 8f4e25f1ceb5
parent 63 10011b12af93
child 65 35c52890a14f
--- a/platform_unix.c	Sun Jun 27 14:25:49 2004 +0000
+++ b/platform_unix.c	Wed Jul 14 02:48:12 2004 +0000
@@ -10,7 +10,15 @@
 #include <sys/param.h>
 #include <errno.h>
 #include <assert.h>
+
+/* !!! FIXME: Why aren't we using fork(), anyhow? */
+#if !USE_PTHREAD
+#error not implemented yet.
+#endif
+
+#if USE_PTHREAD
 #include <pthread.h>
+#endif
 
 #include "platform.h"
 #include "ui.h"
@@ -512,6 +520,10 @@
 
 int spawn_xdelta(const char *cmdline)
 {
+#if !USE_PTHREAD
+    _fatal("No pthread support!");
+    return(0);
+#else
     pthread_t thr;
     void *rc;
     const char *binname = "xdelta";
@@ -532,6 +544,7 @@
 
     pthread_join(thr, &rc);
     return(1);  /* !!! FIXME    *((int *) rc) == 0 ); */
+#endif
 } /* spawn_xdelta */