logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 5a0e6f3404b6263fa5f35aa4bcb838b0b9e945ff
parent d99870e8a68644fbb4b00e2ef6b718b4c7907298
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 22 Mar 2025 03:57:38 +0100

cmd/getconf: toss _XOPEN_IOV_MAX on glibc

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=17515

Diffstat:

Mcmd/getconf_vars.m47+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/cmd/getconf_vars.m4 b/cmd/getconf_vars.m4 @@ -342,7 +342,14 @@ limits_var(_POSIX2_COLL_WEIGHTS_MAX) limits_var(_POSIX2_EXPR_NEST_MAX) limits_var(_POSIX2_LINE_MAX) limits_var(_POSIX2_RE_DUP_MAX) +#ifndef __GLIBC__ +/* + * As observed on glibc 2.41, _XOPEN_IOV_MAX gets defined to _POSIX_UIO_MAXIOV + * which ironically doesn't gets defined in a post-Y2K POSIX namespace + * <https://sourceware.org/bugzilla/show_bug.cgi?id=17515> + */ limits_var(_XOPEN_IOV_MAX) +#endif limits_var(_XOPEN_NAME_MAX) limits_var(_XOPEN_PATH_MAX) limits_var(CHAR_BIT)