simple-obfs
simple-obfs copied to clipboard
freebsd build issue
Any instructions for building simple-obfs on freebsd?
Only one ldflag specific for freebsd:
./configure <stuff> LDFLAGS="-L/usr/local/lib"
./configure LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" can fix some errors. But how to fix this error:
local.c:393:85: error: use of undeclared identifier 'MSG_FASTOPEN' int s = sendto(remote->fd, remote->buf->data, remote->buf->len, MSG_FASTOPEN,
# diff netutils.h netutils.h.0
49,54d48
< #if defined(__FreeBSD__)
< #ifndef MSG_FASTOPEN
< #define MSG_FASTOPEN 0x20000000
< #endif
< #endif
<