summaryrefslogtreecommitdiff
path: root/dev-util/poke/files/poke-4.2-missing-configure-include.patch
blob: 52928c4fe21de3058e1972315dd74717a0becd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
See https://bugs.gentoo.org/935126

diff --git a/m4/printf.m4 b/m4/printf.m4
index 6f91777..ab19318 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -894,6 +894,7 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_N],
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #ifdef _MSC_VER
 #include <inttypes.h>
 /* See page about "Parameter Validation" on msdn.microsoft.com.
@@ -1708,6 +1709,7 @@ AC_DEFUN([gl_SNPRINTF_DIRECTIVE_N],
 #include <signal.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 #if HAVE_SNPRINTF
 # define my_snprintf snprintf
 #else