xref: /OK3568_Linux_fs/buildroot/package/bash/0001-input.h-add-missing-include-on-stdio.h.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 4fa85c85b9a76afd3b19ed75bf17ccd2940f1f55 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sun, 16 Feb 2020 16:18:48 +0100
4Subject: [PATCH] input.h: add missing include on stdio.h
5
6This will fix the following build failure on uclibc:
7
8test -n "/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-2/output/host/bin/arm-linux-ranlib" && /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-2/output/host/bin/arm-linux-ranlib libsh.a
9In file included from ./exec.def:71:
10../input.h:76:3: error: unknown type name 'FILE'
11   FILE *file;
12   ^~~~
13
14Fixes:
15 - http://autobuild.buildroot.org/results/bfca306868df54c567215c45c8cdac838d02f567
16
17Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
18[Upstream status: https://savannah.gnu.org/support/?110196]
19---
20 input.h | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/input.h b/input.h
24index 6aef1269..08b0fdea 100644
25--- a/input.h
26+++ b/input.h
27@@ -21,6 +21,8 @@
28 #if !defined (_INPUT_H_)
29 #define _INPUT_H_
30
31+#include <stdio.h>
32+
33 #include "stdc.h"
34
35 /* Function pointers can be declared as (Function *)foo. */
36--
372.24.1
38
39