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:
Дмитрий Левин 2016-12-31 22:12:08 +00:00
parent 4580f749b7
commit 326b98927a
5 changed files with 6 additions and 2 deletions

View File

@ -30,8 +30,8 @@
*/
#include "defs.h"
#include <sched.h>
#include <asm/unistd.h>
#ifndef CSIGNAL
# define CSIGNAL 0x000000ff

1
defs.h
View File

@ -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"

View File

@ -43,6 +43,7 @@
#ifdef HAVE_PRCTL
# include <sys/prctl.h>
#endif
#include <asm/unistd.h>
#include "ptrace.h"
#include "printsiginfo.h"

View File

@ -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"

1
util.c
View File

@ -39,6 +39,7 @@
# include <sys/xattr.h>
#endif
#include <sys/uio.h>
#include <asm/unistd.h>
#include "regs.h"
#include "ptrace.h"