Fix sys/user.h for FreeBSD 5.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




   Actually 'sys/user.h' is also used in context_sparc.c which only
handles the Sun case. The patch removes it too as it is very likely
unnecessary on that platform too (and at least if we receive a report
that it breaks we will know someone is using this code :-).


Changelog:

 * server/context_i386.c,
   server/context_sparc.c

   Only include 'sys/user.h' for Linux. Fixes a compilation error on 
FreeBSD 5.0



--
Francois Gouget         fgouget@free.fr        http://fgouget.free.fr/
           Demander si un ordinateur peut penser revient à demander
                          si un sous-marin peut nager.
Index: server/context_i386.c
===================================================================
RCS file: /home/wine/wine/server/context_i386.c,v
retrieving revision 1.18
diff -u -r1.18 context_i386.c
--- server/context_i386.c	2001/07/11 17:30:59	1.18
+++ server/context_i386.c	2001/11/19 19:01:46
@@ -20,9 +20,6 @@
 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
 #endif
-#ifdef HAVE_SYS_USER_H
-# include <sys/user.h>
-#endif
 
 #include "winbase.h"
 #include "thread.h"
@@ -58,6 +55,9 @@
 #endif
 
 #ifdef linux
+#ifdef HAVE_SYS_USER_H
+# include <sys/user.h>
+#endif
 
 /* user_regs definitions from asm/user.h */
 struct kernel_user_regs_struct
Index: server/context_sparc.c
===================================================================
RCS file: /home/wine/wine/server/context_sparc.c,v
retrieving revision 1.4
diff -u -r1.4 context_sparc.c
--- server/context_sparc.c	2001/04/27 18:39:47	1.4
+++ server/context_sparc.c	2001/11/19 19:10:38
@@ -18,9 +18,6 @@
 #ifdef HAVE_SYS_PTRACE_H
 # include <sys/ptrace.h>
 #endif
-#ifdef HAVE_SYS_USER_H
-# include <sys/user.h>
-#endif
 
 #include "winbase.h"
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux