[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: scheduler/sysdeps.c patch
From: Bang Jun-Young <bjy () mogua ! org>
Date: 2001-06-15 1:45:50
[Download RAW message or body]
* scheduler/sysdeps.c:
Bang Jun-Young <bjy@mogua.org>
Use clone() if HAVE_CLONE is defined.
--
Bang Jun-Young <bjy@mogua.org>
["sysdeps.c.patch" (text/plain)]
--- 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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic