diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-04-20 15:37:04 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-04-26 00:10:52 +0200 |
commit | 9c1509abe9f3934746b04eff8d91f6f9d181f41d (patch) | |
tree | 668ed5b830860d4c077f332514f22326993af15d /backends/aarch64_initreg.c | |
parent | 5dd27ffbb374b90741fb854de3e02708ffda643f (diff) | |
download | elfutils-9c1509abe9f3934746b04eff8d91f6f9d181f41d.tar.gz |
Clean up linux-specific system includes
We only include them where we actually need them and only on linux.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'backends/aarch64_initreg.c')
-rw-r--r-- | backends/aarch64_initreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/aarch64_initreg.c b/backends/aarch64_initreg.c index 9706205e..daf6f375 100644 --- a/backends/aarch64_initreg.c +++ b/backends/aarch64_initreg.c @@ -32,7 +32,7 @@ #include "system.h" #include <assert.h> -#ifdef __aarch64__ +#if defined(__aarch64__) && defined(__linux__) # include <linux/uio.h> # include <sys/user.h> # include <sys/ptrace.h> @@ -51,7 +51,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), ebl_tid_registers_t *setfunc __attribute__ ((unused)), void *arg __attribute__ ((unused))) { -#ifndef __aarch64__ +#if !defined(__aarch64__) || !defined(__linux__) return false; #else /* __aarch64__ */ |