tpws: use SPLICE_PRESENT define for nosplice

This commit is contained in:
bol-van
2024-04-04 11:40:42 +03:00
parent a570845453
commit 72762694df
4 changed files with 9 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
#include <sys/param.h>
#include <sys/queue.h>
#include <time.h>
#include "tpws.h"
#include "pools.h"
#define HOSTLIST_AUTO_FAIL_THRESHOLD_DEFAULT 3
@@ -81,7 +82,7 @@ struct params_s
#if defined(BSD)
bool pf_enable;
#endif
#ifdef __linux__
#ifdef SPLICE_PRESENT
bool nosplice;
#endif
};