From 289a25290212204483c05bda9480cfc23c499f96 Mon Sep 17 00:00:00 2001 From: Bang Jun-Young Date: Fri, 15 Jun 2001 19:43:51 +0000 Subject: [PATCH] Use clone() if HAVE_CLONE is defined. --- scheduler/sysdeps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scheduler/sysdeps.c b/scheduler/sysdeps.c index 10870eddb55..dce9b30ce26 100644 --- a/scheduler/sysdeps.c +++ b/scheduler/sysdeps.c @@ -29,7 +29,7 @@ DEFAULT_DEBUG_CHANNEL(thread); -#ifdef linux +#if defined(linux) || defined(HAVE_CLONE) # ifdef HAVE_SCHED_H # include # endif @@ -40,7 +40,7 @@ DEFAULT_DEBUG_CHANNEL(thread); # define CLONE_SIGHAND 0x00000800 # define CLONE_PID 0x00001000 # endif /* CLONE_VM */ -#endif /* linux */ +#endif /* linux || HAVE_CLONE */ /*********************************************************************** * SYSDEPS_SetCurThread @@ -91,7 +91,7 @@ int SYSDEPS_SpawnThread( TEB *teb ) { #ifdef ERRNO_LOCATION -#ifdef linux +#if defined(linux) || defined(HAVE_CLONE) const int flags = CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD; if (clone( (int (*)(void *))SYSDEPS_StartThread, teb->stack_top, flags, teb ) < 0) return -1;