curl/m4
Viktor Szakats 04e3621dce
build: add poll() detection for cross-builds
For cross-builds rely on `_POSIX_C_SOURCE` to decide if `poll()` is
supported, rather than just assuming it isn't.

This may still miss to detect `poll()` support, as seen for example with
Linux MUSL cross-builds.

Also:

- GHA/curl-for-win: enable RISC-V 64 cross-target for Linux MUSL.
  (to test this case with cmake, with a false-negative.)
  The first RISC-V 64 build in curl's CI.

- GHA/curl-for-win: add arm64/intel64 job for Linux glibc.
  (to test this case with cmake, and succeed.)

- cmake: delete unnecessary `#include <sys/time.h>` from non-cross-build
  `poll()` detection snippet.
  Follow-up tp cc8b813765 #14718

Fixes #14714
Closes #14734
2024-08-30 17:14:33 +02:00
..
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-amissl.m4 configure: delete unused HAVE_OPENSSL3 macro 2024-08-26 11:01:11 +02:00
curl-bearssl.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-compilers.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-confopts.m4 configure: use AC_MSG_WARN for TLS/experimental warning texts 2024-06-13 17:17:15 +02:00
curl-functions.m4 build: add poll() detection for cross-builds 2024-08-30 17:14:33 +02:00
curl-gnutls.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-mbedtls.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-openssl.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-override.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-reentrant.m4 build: use #error instead of invalid syntax 2024-07-14 14:03:00 +02:00
curl-rustls.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-schannel.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-sectransp.m4 cmake, configure: also link with CoreServices 2023-09-20 08:38:19 +02:00
curl-sysconfig.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
curl-wolfssl.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
xc-am-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-cc-check.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-lt-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-val-flgs.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
zz40-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz50-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz60-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00