Only include 'sys/user.h' for Linux. Fixes a compilation error on
FreeBSD 5.0.
This commit is contained in:
parent
ea31cf0a57
commit
5c84fff413
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue