diff --git a/srcpkgs/slop/patches/bugfix-add-missed-header.patch b/srcpkgs/slop/patches/bugfix-add-missed-header.patch new file mode 100644 index 00000000000..612eb4d8d71 --- /dev/null +++ b/srcpkgs/slop/patches/bugfix-add-missed-header.patch @@ -0,0 +1,22 @@ +From 5cbcb9e389a02d6288f90a790c6b547d9f9dcac7 Mon Sep 17 00:00:00 2001 +From: Drunkard Zhang +Date: Tue, 28 Sep 2021 12:20:25 +0800 +Subject: [PATCH] bugfix: add missed header + +XDestroyImage is included in which belongs to libX11. +Build fails without include this header on Gentoo. + +Signed-off-by: Drunkard Zhang +--- + src/framebuffer.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/framebuffer.cpp b/src/framebuffer.cpp +index 20909b3..da85a25 100644 +--- a/src/framebuffer.cpp ++++ b/src/framebuffer.cpp +@@ -1,3 +1,4 @@ ++#include + #include "framebuffer.hpp" + + slop::Framebuffer::Framebuffer( int w, int h ) { diff --git a/srcpkgs/slop/template b/srcpkgs/slop/template index 4bfe13d0889..bae6088a418 100644 --- a/srcpkgs/slop/template +++ b/srcpkgs/slop/template @@ -1,7 +1,7 @@ # Template file for 'slop' pkgname=slop version=7.5 -revision=4 +revision=5 build_style=cmake hostmakedepends="pkg-config" makedepends="glew-devel glm icu-devel libXrender-devel"