* [Ada] Include errno.h in QNX specific part of the signal handling
@ 2021-10-05 8:26 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-05 8:26 UTC (permalink / raw)
To: gcc-patches; +Cc: Corentin Gay
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
To get access to the errno variable, we need to include errno.h.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* init.c (QNX): Add #include errno.h.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 255 bytes --]
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -2551,6 +2551,7 @@ __gnat_install_handler (void)
#include <signal.h>
#include <unistd.h>
#include <string.h>
+#include <errno.h>
#include "sigtramp.h"
void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-05 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 8:26 [Ada] Include errno.h in QNX specific part of the signal handling Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).