diff --git a/srcpkgs/rdrview/patches/fix-libxml2-2.12.patch b/srcpkgs/rdrview/patches/fix-libxml2-2.12.patch new file mode 100644 index 00000000000..eb8c8eb7709 --- /dev/null +++ b/srcpkgs/rdrview/patches/fix-libxml2-2.12.patch @@ -0,0 +1,26 @@ +From b5fdd379577e13d26784ffdeca3ecb02ff1d336e Mon Sep 17 00:00:00 2001 +From: oreo639 +Date: Sun, 18 Feb 2024 13:49:49 -0800 +Subject: [PATCH] Add missing include with libxml2 2.12+ + +libxml2 2.12 removed extra includes, which causes stdlib.h to not get implicitly +included anymore. + +The missing include results in a warning on gcc13 and below with the resulting +binary truncating the pointer to an integer, gcc14+ makes this a hard error. +--- + src/rdrview.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/rdrview.h b/src/rdrview.h +index 9365e7a..2eda156 100644 +--- a/src/rdrview.h ++++ b/src/rdrview.h +@@ -26,6 +26,7 @@ + #define RDRVIEW_H + + #include ++#include + #include + #include + #include