summaryrefslogtreecommitdiff
path: root/backends/ppc_initreg.c
diff options
context:
space:
mode:
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