On 07/07/21 06:42, Thomas Huth wrote:
What conditions are required for "#define CONFIG_PIPE2" to be set in build/config-host.h? It prevents building for Haiku as pipe2() doesn't exist. I didn't see anything in the configure script regarding pipe2. I also updated my code to the latest in the repository and this issue just popped up.

CONFIG_PIPE2 is set from meson.build instead of the configure script. But why is this blocking your build? The only relevant spot is in util/oslib-posix.c and there is a fallback to the normal pipe() function there...

I suspect the compilation is succeeding with a warning, but linking is not successful. The correct fix is anyway to use a linker test, because a compiler test would not detect a broken system header/library combo, where the prototype is defined but the function is not included.

Paolo


Reply via email to