summaryrefslogtreecommitdiffstats
path: root/backends/ppc_initreg.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-20 15:37:04 +0200
committerMark Wielaard <[email protected]>2017-04-26 00:10:52 +0200
commit9c1509abe9f3934746b04eff8d91f6f9d181f41d (patch)
tree668ed5b830860d4c077f332514f22326993af15d /backends/ppc_initreg.c
parent5dd27ffbb374b90741fb854de3e02708ffda643f (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/ppc_initreg.c')
-rw-r--r--backends/ppc_initreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
index 64f53793..69d623b9 100644
--- a/backends/ppc_initreg.c
+++ b/backends/ppc_initreg.c
@@ -32,7 +32,7 @@
#include "system.h"
#include <stdlib.h>
-#ifdef __powerpc__
+#if defined(__powerpc__) && defined(__linux__)
# include <sys/user.h>
# include <sys/ptrace.h>
#endif
@@ -70,7 +70,7 @@ ppc_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
ebl_tid_registers_t *setfunc __attribute__ ((unused)),
void *arg __attribute__ ((unused)))
{
-#ifndef __powerpc__
+#if !defined(__powerpc__) || !defined(__linux__)
return false;
#else /* __powerpc__ */
union