spacemeshos / gpu-post

Spacemesh proof of space time gpu optimized setup
GNU General Public License v3.0
29 stars 9 forks source link

api_internal includes and FreeBSD 12 #62

Open jdeblese opened 2 years ago

jdeblese commented 2 years ago

api_internal fails to compile on FreeBSD 12.2 due to issues with included headers: alloca() is provided by stdlib.h instead of alloca.h (which doesn't exist); and the endian functions are already defined in sys/endian.h (included by stdint.h). A simple fix would be to check for the __FreeBSD__ macro and not include alloca.h or define the endianness functions when set. I can submit a PR, if that's an acceptable solution.