From 5c84fff413ccc2c0ec9e8e580b8b40e1f34dca79 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 20 Nov 2001 18:52:42 +0000 Subject: [PATCH] Only include 'sys/user.h' for Linux. Fixes a compilation error on FreeBSD 5.0. --- server/context_i386.c | 6 +++--- server/context_sparc.c | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/server/context_i386.c b/server/context_i386.c index 87d1da1c7c6..874d1dd4151 100644 --- a/server/context_i386.c +++ b/server/context_i386.c @@ -20,9 +20,6 @@ #ifdef HAVE_SYS_PARAM_H # include #endif -#ifdef HAVE_SYS_USER_H -# include -#endif #include "winbase.h" #include "thread.h" @@ -58,6 +55,9 @@ #endif #ifdef linux +#ifdef HAVE_SYS_USER_H +# include +#endif /* user_regs definitions from asm/user.h */ struct kernel_user_regs_struct diff --git a/server/context_sparc.c b/server/context_sparc.c index 0e12e7296f7..d8d6b79787c 100644 --- a/server/context_sparc.c +++ b/server/context_sparc.c @@ -18,9 +18,6 @@ #ifdef HAVE_SYS_PTRACE_H # include #endif -#ifdef HAVE_SYS_USER_H -# include -#endif #include "winbase.h"