Skip to content

Commit

Permalink
libpng16's png.h doesn't include zlib.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ydamigos committed Nov 5, 2013
1 parent 6810e78 commit a749aaf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions recipes-graphics/fbgrab/fbgrab/0001-Include-zlib.patch
@@ -0,0 +1,24 @@
From b6d23fd4e8212d90a7914b4c29209f6d146faf8d Mon Sep 17 00:00:00 2001
From: Giannis Damigos <giannis.damigos@gmail.com>
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 <sys/vt.h> /* to handle vt changing */
#include <png.h> /* PNG lib */
#include <linux/fb.h> /* to handle framebuffer ioctls */
+#include <zlib.h>

#define VERSION "1.0 beta 1"
#define DEFAULT_FB "/dev/fb0"
--
1.8.4.2

4 changes: 3 additions & 1 deletion recipes-graphics/fbgrab/fbgrab_1.0.bb
Expand Up @@ -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"

Expand Down

0 comments on commit a749aaf

Please sign in to comment.