[PATCH] debug: Fix tst-longjmp_chk3 build failure on Hurd

Florian Weimer fweimer@redhat.com
Tue Nov 26 18:34:15 GMT 2024


Explicitly include <unistd.h> for _exit and getpid.

Build-tested on i686-gnu and x86_64-gnu.

---
 debug/tst-longjmp_chk3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debug/tst-longjmp_chk3.c b/debug/tst-longjmp_chk3.c
index 7bf1646b35..9b9db3b9e9 100644
--- a/debug/tst-longjmp_chk3.c
+++ b/debug/tst-longjmp_chk3.c
@@ -20,6 +20,7 @@
 #include <signal.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 
 #include <support/support.h>
 

base-commit: 4b7cfcc3fbfab55a1bbb32a2da69c048060739d6



More information about the Libc-alpha mailing list