The TCP_NODELAY macro/constant was not being defined during compilation for the bundled libcurl build on Unix systems because netinet/tcp.h was not being included. It is difficult to verify that this is working properly without a debugger or strace. I've confirmed this fix on Linux and macOS.
Also rearrange some of the defines to help keep the build script somewhat organized.
The
TCP_NODELAY
macro/constant was not being defined during compilation for the bundled libcurl build on Unix systems becausenetinet/tcp.h
was not being included. It is difficult to verify that this is working properly without a debugger or strace. I've confirmed this fix on Linux and macOS.Also rearrange some of the defines to help keep the build script somewhat organized.
Fixes #379.