aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-30 09:19:13 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-18 16:08:21 +0000
commit9a97fb8ad799cd4bfc7e78394d0797a4ff7da0f1 (patch)
tree2983e02cf8394f632134901c80c9e8a958c13963 /src/svm
parent9447adc429885c0afd55df84ba3460a57cd9e2bf (diff)
svm: Only include sys/user on Linux
Type: improvement Change-Id: Idb318eb386617013015c43153bf0bd92fa28b9b6 Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/svm_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h
index e3aaba9b76f..0e19ffd3f76 100644
--- a/src/svm/svm_common.h
+++ b/src/svm/svm_common.h
@@ -23,7 +23,9 @@
#include <stdint.h>
#endif /* __FreeBSD__ */
#include <pthread.h>
+#ifdef __linux__
#include <sys/user.h>
+#endif /* __linux__ */
#include <vppinfra/clib.h>
#include <vppinfra/types.h>