Alexandre Julliard : ntdll: Get rid of obsolete KERN_THALTSTACK sysctl.

Alexandre Julliard julliard at winehq.org
Thu Apr 30 15:24:08 CDT 2020


Module: wine
Branch: master
Commit: 5dcb9ddff7cdd017b647cd6555c531ac2e15d368
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5dcb9ddff7cdd017b647cd6555c531ac2e15d368

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 30 09:54:26 2020 +0200

ntdll: Get rid of obsolete KERN_THALTSTACK sysctl.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/signal_i386.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 2f2a36a579..e905ed0af1 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -45,9 +45,6 @@
 #ifdef HAVE_SYS_SIGNAL_H
 # include <sys/signal.h>
 #endif
-#ifdef HAVE_SYS_SYSCTL_H
-# include <sys/sysctl.h>
-#endif
 #ifdef HAVE_SYS_UCONTEXT_H
 # include <sys/ucontext.h>
 #endif
@@ -2593,14 +2590,6 @@ void signal_init_thread( TEB *teb )
     struct x86_thread_data *thread_data = (struct x86_thread_data *)teb->SystemReserved2;
     stack_t ss;
 
-#ifdef __APPLE__
-    int mib[2], val = 1;
-
-    mib[0] = CTL_KERN;
-    mib[1] = KERN_THALTSTACK;
-    sysctl( mib, 2, NULL, NULL, &val, sizeof(val) );
-#endif
-
     ss.ss_sp    = (char *)teb + teb_size;
     ss.ss_size  = signal_stack_size;
     ss.ss_flags = 0;




More information about the wine-cvs mailing list