]> git.ipfire.org Git - thirdparty/systemd.git/commit
libc: Make sure C23 versions of strtol(), sscanf() are not used 42166/head
authorDaan De Meyer <daan@amutable.com>
Thu, 14 May 2026 19:20:02 +0000 (19:20 +0000)
committerDaan De Meyer <daan@amutable.com>
Mon, 18 May 2026 21:17:38 +0000 (21:17 +0000)
commit97f81508c51cd11e01fc9b32cb3d7825f4a56001
treee0d64d8e5720f7b0b99ae91d655a10b97962288a
parentb77c7b7cfc243691c44d5104e8440cd3aeb86ace
libc: Make sure C23 versions of strtol(), sscanf() are not used

When _GNU_SOURCE is defined, glibc will always use c23 versions
of strtol(), sscanf() and friends if available (introduced after
glibc 2.34). Which means that any binaries built with headers
from newer glibc won't load on glibc < 2.38. To work around this,
redefine the appropriate constants to zero make sure the c99
versions are used instead.
meson.build
src/include/glibc/stdio.h [new file with mode: 0644]
src/include/glibc/stdlib.h [new file with mode: 0644]