aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r--gcc/ada/init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 300a7e1..f7e830e 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -54,8 +54,14 @@
#endif
#ifdef IN_RTS
+
+#ifdef STANDALONE
+#include "runtime.h"
+#else
#include "tconfig.h"
#include "tsystem.h"
+#endif
+
#include <sys/stat.h>
/* We don't have libiberty, so use malloc. */
@@ -463,6 +469,7 @@ void fake_linux_sigemptyset (sigset_t *set)
void
__gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED, void *ucontext)
{
+#ifndef STANDALONE
mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
/* On the i386 and x86-64 architectures, stack checking is performed by
@@ -513,6 +520,7 @@ __gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED, void *ucontext)
mcontext->arm_pc+=1;
#endif
#endif
+#endif
}
#endif