40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From c01b78e37885c7c4a191f752dc346c848d73b731 Mon Sep 17 00:00:00 2001
|
|
From: Romain Naour <romain.naour@gmail.com>
|
|
Date: Sat, 9 Sep 2023 23:58:50 +0200
|
|
Subject: [PATCH] HACK: keep _ISOC23_SOURCE undefined to build localedef
|
|
with old glibc
|
|
|
|
Fixes:
|
|
host-localedef-2.38-13-g92201f16cbcfd9eafe314ef6654be2ea7ba25675/build/locale/ld-ctype.o: in function `ctype_read':
|
|
ld-ctype.c:(.text+0x6cef): undefined reference to `__isoc23_strtoul'
|
|
|
|
Upstream: Not applicable
|
|
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
[Thomas: adapted to glibc 2.40, which required the logic to be changed
|
|
to _ISOC23_SOURCE]
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
[Bernd: rebase for 2.43]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
---
|
|
include/features.h | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/include/features.h b/include/features.h
|
|
index c080ad4260..230fd2539a 100644
|
|
--- a/include/features.h
|
|
+++ b/include/features.h
|
|
@@ -223,9 +223,7 @@
|
|
# undef _ISOC11_SOURCE
|
|
# define _ISOC11_SOURCE 1
|
|
# undef _ISOC23_SOURCE
|
|
-# define _ISOC23_SOURCE 1
|
|
# undef _ISOC2Y_SOURCE
|
|
-# define _ISOC2Y_SOURCE 1
|
|
# undef _POSIX_SOURCE
|
|
# define _POSIX_SOURCE 1
|
|
# undef _POSIX_C_SOURCE
|
|
--
|
|
2.50.1
|
|
|