summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-05-20 05:50:49 +0000
committerroot <root>2008-05-20 05:50:49 +0000
commite2bfb1cf1563d34049aa7a2e967aa660cc4a08a5 (patch)
tree9bc02708a36a0eb5fe6afb6e0c054e050d075456
parent051bbbabca13ddf4f1ec51e7447a034c3d9e8638 (diff)
*** empty log message ***rel-3_03
-rw-r--r--xthread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xthread.h b/xthread.h
index e0de1ee..e53cb53 100644
--- a/xthread.h
+++ b/xthread.h
@@ -113,6 +113,11 @@ typedef pthread_t thread_t;
#define X_THREAD_PROC(name) static void *name (void *thr_arg)
#define X_THREAD_ATFORK(prepare,parent,child) pthread_atfork (prepare, parent, child)
+// the broken bsd's once more
+#ifndef PTHREAD_STACK_MIN
+# define PTHREAD_STACK_MIN 0
+#endif
+
static int
thread_create (thread_t *tid, void *(*proc)(void *), void *arg)
{