From 4470c73e483468040513256f041a98835a92b21c Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 19 Nov 2024 18:04:54 +0300 Subject: [PATCH] tpws: fix BSD build --- tpws/tpws.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpws/tpws.c b/tpws/tpws.c index 2a643c8..0e25e5d 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -538,7 +538,9 @@ void parse_params(int argc, char *argv[]) params.pf_enable = true; // OpenBSD and MacOS have no other choice #endif +#ifdef __linux__ params.fix_seg_avail = socket_supports_notsent(); +#endif LIST_INIT(¶ms.hostlists); LIST_INIT(¶ms.ipsets);