From ed89fe7b074ae330c6000316cc82893ab9110f1b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 6 Mar 2003 23:44:02 +0000 Subject: [PATCH] Hardcode set_thread_area syscall number to avoid trouble with broken headers. --- library/ldt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/ldt.c b/library/ldt.c index 1a421118bca..92231ea617f 100644 --- a/library/ldt.c +++ b/library/ldt.c @@ -53,10 +53,6 @@ struct modify_ldt_s unsigned int useable:1; }; -#ifndef SYS_set_thread_area -#define SYS_set_thread_area 243 -#endif - static inline void fill_modify_ldt_struct( struct modify_ldt_s *ptr, const LDT_ENTRY *entry ) { ptr->base_addr = (unsigned long)wine_ldt_get_base(entry); @@ -94,7 +90,7 @@ static inline int set_thread_area( struct modify_ldt_s *ptr ) "int $0x80\n\t" "popl %%ebx" : "=a" (res) - : "0" (SYS_set_thread_area), "r" (ptr) ); + : "0" (243) /* SYS_set_thread_area */, "r" (ptr) ); if (res >= 0) return res; errno = -res; return -1;