Package: tuxonice-userui / 1.1+dfsg1.gc3bdd83-4

0005-Fix-include-of-libmng.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Julien Muchembled <jm@jmuchemb.eu>
Date: Thu, 4 Sep 2014 14:55:34 +0200
Subject: Fix include of <libmng.h>

<libmng.h> does not include <stdio.h> anymore but <jpeglib.h> requires this.
It's unclear if this is an issue in libmng or libjpeg, but for the moment
we need to include it ourselves.

Bug-Debian: https://bugs.debian.org/759856
---
 fbsplash/mng_callbacks.c | 1 +
 fbsplash/mng_render.c    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/fbsplash/mng_callbacks.c b/fbsplash/mng_callbacks.c
index 7b9c8fc..c331a30 100644
--- a/fbsplash/mng_callbacks.c
+++ b/fbsplash/mng_callbacks.c
@@ -9,6 +9,7 @@
  *
  */
 
+#include <stdio.h>
 #include <libmng.h>
 #include <sys/time.h>
 #include <time.h>
diff --git a/fbsplash/mng_render.c b/fbsplash/mng_render.c
index 2af8bbe..72dbfc0 100644
--- a/fbsplash/mng_render.c
+++ b/fbsplash/mng_render.c
@@ -12,6 +12,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdio.h>
 #include <libmng.h>
 #include <unistd.h>
 #include "splash.h"