Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use swap{16,32,64} from <endian.h> on OpenBSD #71

Merged
merged 1 commit into from Jul 14, 2021

Conversation

timkuijsten
Copy link
Contributor

This fixes a compile issue on OpenBSD, because bswap is not supported. Tested on OpenBSD 6.8 stable.

Furthermore, the man pages of NetBSD and FreeBSD indicate these platforms do support bswap{16,32,64}.

Same as Chia-Network/chiapos#183.

@timkuijsten timkuijsten force-pushed the openbsd branch 2 times, most recently from b54b529 to 19ac9e3 Compare April 12, 2021 19:07
@timkuijsten
Copy link
Contributor Author

Note regarding the "Build wheel on macos-latest " errors. I can build on macOS 11.2.3 using pip wheel .:

Building wheels for collected packages: chiavdf
  Building wheel for chiavdf (PEP 517) ... done
  Created wheel for chiavdf: filename=chiavdf-1.0.2.dev1-cp39-cp39-macosx_11_0_x86_64.whl size=962835 sha256=b4d741c1b6915889ef64fb9808dc684bc799baba4d744f90d219fd7334125feb
  Stored in directory: /private/var/folders/0l/r8yzvdkj16g1gsb61g9jrvbw0000gn/T/pip-ephem-wheel-cache-_8mlr__d/wheels/67/9a/05/7c8dd1fbd1b84e618112fef0afc9f3f2d267add980d1b4842b
Successfully built chiavdf

@hoffmang9 hoffmang9 merged commit abae640 into Chia-Network:main Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants