]> git.ipfire.org Git - thirdparty/libbsd.git/commit
build: Do not require funopen() to be ported
authorGuillem Jover <guillem@hadrons.org>
Wed, 23 Nov 2022 22:31:54 +0000 (23:31 +0100)
committerGuillem Jover <guillem@hadrons.org>
Thu, 24 Nov 2022 22:23:33 +0000 (23:23 +0100)
commite50896286cc5718898194edb73fa7262ad9a22db
tree717dae5fb9bb98c7ab356b2b88618ebd6714d173
parent00b538ffa3492053b03771b7bc76563d740c038d
build: Do not require funopen() to be ported

This function cannot be easily and (more importantly) correctly ported
without cooperation from the libc stdio layer. We already document that
users should be prepared to have the function not available on some
platforms and that they should ideally switch their code to other
more portable and better interfaces.

Instead of making the build fail, and requiring porters to add
exceptions for something that most probably cannot be ported correctly
anyway, simply print a warning and let it build. This will not be a
regression because on those systems libbsd would have never been built
before.

Prompted-by: Jens Finkhaeuser <jens@finkhaeuser.de>
configure.ac
man/funopen.3bsd
src/funopen.c
test/Makefile.am