0003-HACK-keep-_ISOC2X_SOURCE-undefined-to-build-localede.patch 926 B

1234567891011121314151617181920212223242526272829303132
  1. From babfa64585bef6c53c1d399a1c244aea89437c9e Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@gmail.com>
  3. Date: Sat, 9 Sep 2023 23:58:50 +0200
  4. Subject: [PATCH] HACK: keep _ISOC2X_SOURCE undefined to build localedef with
  5. old glibc
  6. Fixes:
  7. host-localedef-2.38-13-g92201f16cbcfd9eafe314ef6654be2ea7ba25675/build/locale/ld-ctype.o: in function `ctype_read':
  8. ld-ctype.c:(.text+0x6cef): undefined reference to `__isoc23_strtoul'
  9. Upstream: Not applicable
  10. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  11. ---
  12. include/features.h | 1 -
  13. 1 file changed, 1 deletion(-)
  14. diff --git a/include/features.h b/include/features.h
  15. index 7c51b4a2e4..f385370d18 100644
  16. --- a/include/features.h
  17. +++ b/include/features.h
  18. @@ -207,7 +207,6 @@
  19. # undef _ISOC11_SOURCE
  20. # define _ISOC11_SOURCE 1
  21. # undef _ISOC2X_SOURCE
  22. -# define _ISOC2X_SOURCE 1
  23. # undef _POSIX_SOURCE
  24. # define _POSIX_SOURCE 1
  25. # undef _POSIX_C_SOURCE
  26. --
  27. 2.41.0