aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>