1From 51287fb60263530f61b14df5519e10dabe67d2ad Mon Sep 17 00:00:00 2001 2From: Florian Weimer <fweimer@redhat.com> 3Date: Thu, 24 Nov 2022 13:07:56 +0100 4Subject: [PATCH 2/3] acinclude.m4: Add missing <unistd.h> to 5 AM_SAFETY_CHECK_MKSTEMP 6 7Otherwise, the check fails on a compiler which does not support 8implicit function declarations (a language feature removed in 1999). 9 10Upstream-Status: Submitted [https://github.com/fvwmorg/fvwm/pull/100] 11Signed-off-by: Khem Raj <raj.khem@gmail.com> 12--- 13 acinclude.m4 | 3 +++ 14 1 file changed, 3 insertions(+) 15 16diff --git a/acinclude.m4 b/acinclude.m4 17index b66042f9..4dee2abe 100644 18--- a/acinclude.m4 19+++ b/acinclude.m4 20@@ -1154,6 +1154,9 @@ AC_DEFUN([AM_SAFETY_CHECK_MKSTEMP],[ 21 #include <stdio.h> 22 #include <stdlib.h> 23 #include <string.h> 24+#ifdef HAVE_UNISTD_H 25+#include <unistd.h> 26+#endif 27 int main(void) 28 { 29 char template[128]; 30-- 312.45.0 32 33