Skip to content

Conversation

@ivdsangen
Copy link
Contributor

This fixes the build in cases WIN32 is not defined. At least on OpenBSD this made the build work.

@gmaxwell
Copy link
Contributor

Hardcoding it is wrong for systems other than windows. If it's missing on OpenBSD it may be necessary to add another header. select.h would be an obvious candidate.

@luke-jr
Copy link
Member

luke-jr commented Nov 26, 2016

FD_SETSIZE has historically been able to be overridden on most systems, but unfortunately IIRC some years ago glibc hard-coded it so it cannot be changed. :(

@laanwj
Copy link
Member

laanwj commented Nov 28, 2016

ACK after squash. Adding a header is the right thing to do.

I wonder why you need this though, I have built many times on OpenBSD (https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md) without stumbling on this issue.

@ivdsangen
Copy link
Contributor Author

ivdsangen commented Nov 28, 2016

I started using OpenBSD again after some time. I upgraded to -current and followed the instructions in build-openbsd.md and got the error that FD_SETSIZE was undeclared.

@laanwj laanwj changed the title Define FD_SETSIZE for all architectures Prevent FD_SETSIZE error building on OpenBSD Nov 29, 2016
@laanwj laanwj merged commit 498a1d7 into bitcoin:master Nov 29, 2016
laanwj added a commit that referenced this pull request Nov 29, 2016
498a1d7 Include select.h when WIN32 is not defined (Ivo van der Sangen)
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Dec 2, 2016
codablock pushed a commit to codablock/dash that referenced this pull request Jan 17, 2018
498a1d7 Include select.h when WIN32 is not defined (Ivo van der Sangen)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
498a1d7 Include select.h when WIN32 is not defined (Ivo van der Sangen)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 25, 2019
498a1d7 Include select.h when WIN32 is not defined (Ivo van der Sangen)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants