0001-Fix-gnulib-stdio.h-include-on-uclibc.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 60fa934ffba3c230040328fdbbbf51f417f12871 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
  3. Date: Mon, 22 Jun 2020 14:11:05 +0200
  4. Subject: [PATCH] Fix gnulib stdio.h include on uclibc
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The __need_FILE define used by gnulib interferes with the uClibc stdio.h
  9. header, so move the inclusion the stdio.h to after __need_FILE has been
  10. undefined again.
  11. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
  12. ---
  13. gl/fopen.c | 2 +-
  14. src/gl/fopen.c | 2 +-
  15. 2 files changed, 2 insertions(+), 2 deletions(-)
  16. diff --git a/gl/fopen.c b/gl/fopen.c
  17. index 8d6625a..248692c 100644
  18. --- a/gl/fopen.c
  19. +++ b/gl/fopen.c
  20. @@ -23,8 +23,8 @@
  21. #include <config.h>
  22. /* Get the original definition of fopen. It might be defined as a macro. */
  23. -#include <stdio.h>
  24. #undef __need_FILE
  25. +#include <stdio.h>
  26. static FILE *
  27. orig_fopen (const char *filename, const char *mode)
  28. diff --git a/src/gl/fopen.c b/src/gl/fopen.c
  29. index 47d7f19..1f22f4f 100644
  30. --- a/src/gl/fopen.c
  31. +++ b/src/gl/fopen.c
  32. @@ -23,8 +23,8 @@
  33. #include <config.h>
  34. /* Get the original definition of fopen. It might be defined as a macro. */
  35. -#include <stdio.h>
  36. #undef __need_FILE
  37. +#include <stdio.h>
  38. static FILE *
  39. orig_fopen (const char *filename, const char *mode)
  40. --
  41. 2.25.4