summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-10-30 12:25:36 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-10-30 12:25:36 +0000
commitbd9c847dae4d1825b2d8dd1c83eb99f32b1803ca (patch)
tree08b3dafa1146adf545347de3815d6091b6cb0870
parentec9a5643902633d6e424ed963d2b72c012aaa967 (diff)
On verifie qu'on a tous les appels systemes necessaires.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@373 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/threads/scheduler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/otherlibs/threads/scheduler.c b/otherlibs/threads/scheduler.c
index c49dc3d9e..6b6ab91c9 100644
--- a/otherlibs/threads/scheduler.c
+++ b/otherlibs/threads/scheduler.c
@@ -10,6 +10,11 @@
#include "io.h"
#include "roots.h"
+#if defined(HAS_SELECT) && defined(HAS_SETITIMER) && defined(HAS_GETTIMEOFDAY)
+#else
+#include "Cannot compile libthreads, system calls missing"
+#endif
+
/* Configuration */
/* Initial size of stack when a thread is created (4 Ko) */