scheduler/sysdeps.c patch

Bang Jun-Young bjy at mogua.org
Thu Jun 14 20:45:50 CDT 2001


	* scheduler/sysdeps.c:
	Bang Jun-Young <bjy at mogua.org>
	Use clone() if HAVE_CLONE is defined.

-- 
Bang Jun-Young <bjy at mogua.org>

-------------- next part --------------
--- scheduler/sysdeps.c.orig	Fri Mar  2 07:13:49 2001
+++ scheduler/sysdeps.c	Thu Jun 14 10:53:40 2001
@@ -29,7 +29,7 @@
 
 DEFAULT_DEBUG_CHANNEL(thread);
 
-#ifdef linux
+#ifdef HAVE_CLONE
 # ifdef HAVE_SCHED_H
 #  include <sched.h>
 # endif
@@ -40,7 +40,7 @@
 #  define CLONE_SIGHAND 0x00000800
 #  define CLONE_PID     0x00001000
 # endif  /* CLONE_VM */
-#endif  /* linux */
+#endif  /* HAVE_CLONE */
 
 /***********************************************************************
  *           SYSDEPS_SetCurThread
@@ -91,7 +91,7 @@
 {
 #ifdef ERRNO_LOCATION
 
-#ifdef linux
+#ifdef 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;


More information about the wine-patches mailing list