defs.h: stop including <asm/unistd.h>
Limit the number of files where <asm/unistd.h> is included to only those few that need it. * defs.h: Do not include <asm/unistd.h>. * clone.c: Include <asm/unistd.h>. * strace.c: Likewise. * syscall.c: Likewise. * util.c: Likewise.
This commit is contained in:
parent
4580f749b7
commit
326b98927a
2
clone.c
2
clone.c
@ -30,8 +30,8 @@
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
#include <sched.h>
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#ifndef CSIGNAL
|
||||
# define CSIGNAL 0x000000ff
|
||||
|
1
defs.h
1
defs.h
@ -51,7 +51,6 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include "kernel_types.h"
|
||||
#include "mpers_type.h"
|
||||
|
1
strace.c
1
strace.c
@ -43,6 +43,7 @@
|
||||
#ifdef HAVE_PRCTL
|
||||
# include <sys/prctl.h>
|
||||
#endif
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include "ptrace.h"
|
||||
#include "printsiginfo.h"
|
||||
|
@ -39,6 +39,9 @@
|
||||
/* for struct iovec */
|
||||
#include <sys/uio.h>
|
||||
|
||||
/* for __X32_SYSCALL_BIT */
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include "regs.h"
|
||||
#include "ptrace.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user