diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 15:37:04 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-26 00:10:52 +0200 |
| commit | 9c1509abe9f3934746b04eff8d91f6f9d181f41d (patch) | |
| tree | 668ed5b830860d4c077f332514f22326993af15d /backends/arm_initreg.c | |
| parent | 5dd27ffbb374b90741fb854de3e02708ffda643f (diff) | |
Clean up linux-specific system includes
We only include them where we actually need them and only on linux.
Signed-off-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'backends/arm_initreg.c')
| -rw-r--r-- | backends/arm_initreg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/arm_initreg.c b/backends/arm_initreg.c index a0a9be94..efcabaf6 100644 --- a/backends/arm_initreg.c +++ b/backends/arm_initreg.c @@ -30,6 +30,7 @@ # include <config.h> #endif +#ifdef __linux__ #if defined __arm__ # include <sys/types.h> # include <sys/user.h> @@ -45,6 +46,7 @@ # define user_regs_struct user_pt_regs # endif #endif +#endif #define BACKEND arm_ #include "libebl_CPU.h" @@ -54,7 +56,7 @@ arm_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), ebl_tid_registers_t *setfunc __attribute__ ((unused)), void *arg __attribute__ ((unused))) { -#if !defined __arm__ && !defined __aarch64__ +#if !defined(__linux__) || (!defined __arm__ && !defined __aarch64__) return false; #else /* __arm__ || __aarch64__ */ #if defined __arm__ |
