From a749aaf5cdb2234dece7dd911c83fe170c0163b9 Mon Sep 17 00:00:00 2001 From: Giannis Damigos Date: Tue, 5 Nov 2013 17:20:36 +0000 Subject: [PATCH] libpng16's png.h doesn't include zlib.h --- .../fbgrab/fbgrab/0001-Include-zlib.patch | 24 +++++++++++++++++++ recipes-graphics/fbgrab/fbgrab_1.0.bb | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 recipes-graphics/fbgrab/fbgrab/0001-Include-zlib.patch diff --git a/recipes-graphics/fbgrab/fbgrab/0001-Include-zlib.patch b/recipes-graphics/fbgrab/fbgrab/0001-Include-zlib.patch new file mode 100644 index 0000000..3be591e --- /dev/null +++ b/recipes-graphics/fbgrab/fbgrab/0001-Include-zlib.patch @@ -0,0 +1,24 @@ +From b6d23fd4e8212d90a7914b4c29209f6d146faf8d Mon Sep 17 00:00:00 2001 +From: Giannis Damigos +Date: Tue, 5 Nov 2013 12:56:12 +0200 +Subject: [PATCH] Include zlib + +--- + fbgrab.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/fbgrab.c b/fbgrab.c +index fc89f5a..3c3e4b0 100644 +--- a/fbgrab.c ++++ b/fbgrab.c +@@ -24,6 +24,7 @@ + #include /* to handle vt changing */ + #include /* PNG lib */ + #include /* to handle framebuffer ioctls */ ++#include + + #define VERSION "1.0 beta 1" + #define DEFAULT_FB "/dev/fb0" +-- +1.8.4.2 + diff --git a/recipes-graphics/fbgrab/fbgrab_1.0.bb b/recipes-graphics/fbgrab/fbgrab_1.0.bb index e1aaec1..e29f866 100644 --- a/recipes-graphics/fbgrab/fbgrab_1.0.bb +++ b/recipes-graphics/fbgrab/fbgrab_1.0.bb @@ -7,7 +7,9 @@ PR = "r2" DEPENDS = " zlib libpng " -SRC_URI = "git://github.com/notespace/fbgrab.git" +SRC_URI = "git://github.com/notespace/fbgrab.git \ + file://0001-Include-zlib.patch \ + " SRCREV = "cee7102f8cc560cf46798a32e823c6bb65e3b50f" S = "${WORKDIR}/git"