Bug #14827
closedFails to compile on GNU/Hurd: IOV_MAX undefined
Description
Description
The existence of the writev()
syscall does not imply that the IOV_MAX
macro exists.
Because on GNU/Hurd operating systems the IOV_MAX
macro does not exist, Ruby fails to compile there.
Reproduce
Install a GNU/Hurd operating system and try to compile Ruby.
The patch
The patch simply ignores IOV_MAX
if it is not defined.
Files
Updated by normalperson (Eric Wong) about 7 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r63576.
io.c: fix compilation when IOV_MAX is not defined
GNU/Hurd has writev(2) but does not define IOV_MAX
[ruby-core:87417] [Bug #14827]
Reported-by: Paul Sonnenschein
Updated by normalperson (Eric Wong) about 7 years ago
[email protected] wrote:
https://bugs.ruby-lang.org/issues/14827
Thanks for the report.
I'm trying to reduce mixing CPP and C conditionals, so I hoisted
the IOV_MAX check into a new iovcnt_ok function in r63576 which
should still work for you.