simple-obfs icon indicating copy to clipboard operation
simple-obfs copied to clipboard

freebsd build issue

Open bruce-lcf opened this issue 7 years ago • 3 comments

Any instructions for building simple-obfs on freebsd?

bruce-lcf avatar Nov 16 '18 07:11 bruce-lcf

Only one ldflag specific for freebsd: ./configure <stuff> LDFLAGS="-L/usr/local/lib"

adrenogamer avatar Feb 10 '19 04:02 adrenogamer

./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,

zhongyb avatar Mar 08 '19 07:03 zhongyb

# diff netutils.h netutils.h.0
49,54d48
< #if defined(__FreeBSD__)
< #ifndef MSG_FASTOPEN
< #define MSG_FASTOPEN   0x20000000
< #endif
< #endif
<

makkoveev avatar Aug 12 '20 12:08 makkoveev