diff options
author | Theo Buehler <tb@openbsd.org> | 2024-12-19 20:24:33 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-12-20 01:14:04 +0100 |
commit | bf808ea0fc581f58ec4aabd9d7f24d3a5275bc7a (patch) | |
tree | ab5a678d5652e2b261a7084706a36132b6aa4f80 /m4 | |
parent | c8bb0114707a17ddb2d4a7a62deef2622252a05e (diff) | |
download | portable-bf808ea0fc581f58ec4aabd9d7f24d3a5275bc7a.tar.gz portable-bf808ea0fc581f58ec4aabd9d7f24d3a5275bc7a.tar.bz2 portable-bf808ea0fc581f58ec4aabd9d7f24d3a5275bc7a.zip |
Provide getdelim and getline compat shims
These are portable implementations from NetBSD that are needed on
Windows and perhaps some other platforms with the new versions of
the mlkem tests.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-libc.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index 40df15b..8cb849b 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -7,7 +7,7 @@ AC_CHECK_HEADERS([netinet/ip.h], [], [], | |||
7 | ]) | 7 | ]) |
8 | AC_HEADER_RESOLV | 8 | AC_HEADER_RESOLV |
9 | # Check for general libc functions | 9 | # Check for general libc functions |
10 | AC_CHECK_FUNCS([asprintf freezero memmem]) | 10 | AC_CHECK_FUNCS([asprintf freezero getdelim getline memmem]) |
11 | AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) | 11 | AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) |
12 | AC_CHECK_FUNCS([strcasecmp strlcat strlcpy strndup strnlen strsep strtonum]) | 12 | AC_CHECK_FUNCS([strcasecmp strlcat strlcpy strndup strnlen strsep strtonum]) |
13 | AC_CHECK_FUNCS([timegm _mkgmtime timespecsub]) | 13 | AC_CHECK_FUNCS([timegm _mkgmtime timespecsub]) |
@@ -24,6 +24,8 @@ AC_CACHE_CHECK([for getpagesize], ac_cv_func_getpagesize, [ | |||
24 | ]) | 24 | ]) |
25 | AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) | 25 | AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) |
26 | AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes]) | 26 | AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes]) |
27 | AM_CONDITIONAL([HAVE_GETDELIM], [test "x$ac_cv_func_getdelim" = xyes]) | ||
28 | AM_CONDITIONAL([HAVE_GETLINE], [test "x$ac_cv_func_getline" = xyes]) | ||
27 | AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes]) | 29 | AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes]) |
28 | AM_CONDITIONAL([HAVE_GETOPT], [test "x$ac_cv_func_getopt" = xyes]) | 30 | AM_CONDITIONAL([HAVE_GETOPT], [test "x$ac_cv_func_getopt" = xyes]) |
29 | AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) | 31 | AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) |