File: 0005-Fix-include-of-libmng.h.patch

package info (click to toggle)
tuxonice-userui 1.1%2Bdfsg1.gc3bdd83-4
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, buster, stretch
  • size: 664 kB
  • ctags: 2,034
  • sloc: ansic: 5,786; makefile: 91; sh: 63; python: 46
file content (38 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (2)
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"