aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-30 09:26:42 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-18 16:08:04 +0000
commit9447adc429885c0afd55df84ba3460a57cd9e2bf (patch)
treeb99e156beb2dd17efd504a42641dd1c117356803
parent67e7f016d21c36778b22f8c2c2480868bf603cd8 (diff)
vnet: Add required header for pthread_np
Type: improvement Change-Id: Ia9295b79340a18de6eb5fe80877dcf4ce97b35eb Signed-off-by: Tom Jones <thj@freebsd.org>
-rw-r--r--src/vpp/vnet/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c
index 3257d9cda57..192df8f2fe1 100644
--- a/src/vpp/vnet/main.c
+++ b/src/vpp/vnet/main.c
@@ -15,6 +15,9 @@
#define _GNU_SOURCE
#include <pthread.h>
+#ifdef __FreeBSD__
+#include <pthread_np.h>
+#endif /* __FreeBSD__ */
#include <sched.h>
#include <vppinfra/clib.h>