summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user-exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user-exec.c b/user-exec.c
index 1185cb03c8..5863b9f362 100644
--- a/user-exec.c
+++ b/user-exec.c
@@ -436,7 +436,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
unsigned long pc;
int is_write;
-#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3))
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3))
pc = uc->uc_mcontext.gregs[R15];
#else
pc = uc->uc_mcontext.arm_pc;