summaryrefslogtreecommitdiff
path: root/app-emulation/xen-tools/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-16 16:07:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-16 16:07:12 +0100
commitaa0b5f37afc4a88422d6301d07e4e3852ddd7251 (patch)
tree342a70a4619ad0ebf69d8cb04c1a42e5006af4d9 /app-emulation/xen-tools/files
parent11263cb7c372230b9e5c0195c24692e299887573 (diff)
gentoo auto-resync : 16:05:2023 - 16:07:12
Diffstat (limited to 'app-emulation/xen-tools/files')
-rw-r--r--app-emulation/xen-tools/files/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/app-emulation/xen-tools/files/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch b/app-emulation/xen-tools/files/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch
new file mode 100644
index 000000000000..02d1f0ff8b1f
--- /dev/null
+++ b/app-emulation/xen-tools/files/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch
@@ -0,0 +1,39 @@
+From 873d4759aa7b0581bf34e8a7ebfcbeca789ed6e1 Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Tue, 16 May 2023 09:56:48 +0200
+Subject: [PATCH] m4/ptyfuncs.m4 tools/configure: add linux headers for pty
+ functions
+
+To avoid implicit function declarations, which will cause an error on
+modern compilers. See https://wiki.gentoo.org/wiki/Modern_C_porting
+
+Downstream Gentoo bug: https://bugs.gentoo.org/904449
+
+Signed-off-by: Florian Schmaus <flo@geekplace.eu>
+--- a/m4/ptyfuncs.m4
++++ b/m4/ptyfuncs.m4
+@@ -19,6 +19,9 @@ AC_DEFUN([AX_CHECK_PTYFUNCS], [
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
+ #ifdef INCLUDE_LIBUTIL_H
+ #include INCLUDE_LIBUTIL_H
++#else
++#include <pty.h>
++#include <utmp.h>
+ #endif
+ int main(void) {
+ openpty(0,0,0,0,0);
+--- a/tools/configure
++++ b/tools/configure
+@@ -9002,6 +9002,9 @@ See \`config.log' for more details" "$LINENO" 5; }
+
+ #ifdef INCLUDE_LIBUTIL_H
+ #include INCLUDE_LIBUTIL_H
++#else
++#include <pty.h>
++#include <utmp.h>
+ #endif
+ int main(void) {
+ openpty(0,0,0,0,0);
+--
+2.39.3
+