0001-Solving-incompatible-implicit-declaration-of-built-i.patch 847 B

1234567891011121314151617181920212223242526272829
  1. From 300ecf85a8fe166a39f9dd818945c7b8a970db39 Mon Sep 17 00:00:00 2001
  2. From: Wim Stockman <wim@thinkerwim.org>
  3. Date: Mon, 12 Feb 2024 22:52:50 +0100
  4. Subject: [PATCH] Solving incompatible implicit declaration of built-in
  5. function 'strlen'
  6. Signed-off-by: Wim Stockman <wim@thinkerwim.org>
  7. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  8. Upstream: https://git.savannah.gnu.org/cgit/enscript.git/commit/?id=300ecf85a8fe166a39f9dd818945c7b8a970db39
  9. ---
  10. compat/getopt.c | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/compat/getopt.c b/compat/getopt.c
  13. index 752f28a..19f50e1 100644
  14. --- a/compat/getopt.c
  15. +++ b/compat/getopt.c
  16. @@ -34,6 +34,8 @@
  17. #include <config.h>
  18. #endif
  19. +#include <string.h>
  20. +
  21. #if !defined (__STDC__) || !__STDC__
  22. /* This is a separate conditional since some stdc systems
  23. reject `defined (const)'. */
  24. --
  25. 2.39.2