0019-input.h-add-missing-include-on-stdio.h.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 4fa85c85b9a76afd3b19ed75bf17ccd2940f1f55 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 16 Feb 2020 16:18:48 +0100
  4. Subject: [PATCH] input.h: add missing include on stdio.h
  5. This will fix the following build failure on uclibc:
  6. test -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
  7. In file included from ./exec.def:71:
  8. ../input.h:76:3: error: unknown type name 'FILE'
  9. FILE *file;
  10. ^~~~
  11. Fixes:
  12. - http://autobuild.buildroot.org/results/bfca306868df54c567215c45c8cdac838d02f567
  13. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  14. [Upstream status: https://savannah.gnu.org/support/?110196]
  15. ---
  16. input.h | 2 ++
  17. 1 file changed, 2 insertions(+)
  18. diff --git a/input.h b/input.h
  19. index 6aef1269..08b0fdea 100644
  20. --- a/input.h
  21. +++ b/input.h
  22. @@ -21,6 +21,8 @@
  23. #if !defined (_INPUT_H_)
  24. #define _INPUT_H_
  25. +#include <stdio.h>
  26. +
  27. #include "stdc.h"
  28. /* Function pointers can be declared as (Function *)foo. */
  29. --
  30. 2.24.1