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

FreeBSD 5.0.
This commit is contained in:
Francois Gouget 2001-11-20 18:52:42 +00:00 committed by Alexandre Julliard
parent ea31cf0a57
commit 5c84fff413
2 changed files with 3 additions and 6 deletions

View File

@ -20,9 +20,6 @@
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#ifdef HAVE_SYS_USER_H
# include <sys/user.h>
#endif
#include "winbase.h" #include "winbase.h"
#include "thread.h" #include "thread.h"
@ -58,6 +55,9 @@
#endif #endif
#ifdef linux #ifdef linux
#ifdef HAVE_SYS_USER_H
# include <sys/user.h>
#endif
/* user_regs definitions from asm/user.h */ /* user_regs definitions from asm/user.h */
struct kernel_user_regs_struct struct kernel_user_regs_struct

View File

@ -18,9 +18,6 @@
#ifdef HAVE_SYS_PTRACE_H #ifdef HAVE_SYS_PTRACE_H
# include <sys/ptrace.h> # include <sys/ptrace.h>
#endif #endif
#ifdef HAVE_SYS_USER_H
# include <sys/user.h>
#endif
#include "winbase.h" #include "winbase.h"