0020-pull-in-stdio-h-for-gcc14.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001
  2. From: Lance Fredrickson <lancethepants@gmail.com>
  3. Date: Wed, 5 Jun 2024 14:31:38 -0600
  4. Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h include.
  5. Fix building syslinux with GCC 14.x
  6. Add missing stdio.h include. Without it results in the following error under GCC 14.x
  7. ../../../com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
  8. ../../../com32/lib/syslinux/debug.c:91:5: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
  9. 91 | printf("Dynamic debug unavailable\n");
  10. Upstream: dead (last release in 2014)
  11. Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
  12. ---
  13. com32/lib/syslinux/debug.c | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/com32/lib/syslinux/debug.c b/com32/lib/syslinux/debug.c
  16. index d9ab863f..e8f53d57 100644
  17. --- a/com32/lib/syslinux/debug.c
  18. +++ b/com32/lib/syslinux/debug.c
  19. @@ -1,6 +1,7 @@
  20. #include <linux/list.h>
  21. #include <string.h>
  22. #include <stdbool.h>
  23. +#include <stdio.h>
  24. #ifdef DYNAMIC_DEBUG
  25. --
  26. 2.39.2