svm: Only include sys/user on Linux 49/40349/2
authorTom Jones <thj@freebsd.org>
Tue, 30 Jan 2024 09:19:13 +0000 (09:19 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Sun, 18 Feb 2024 16:08:21 +0000 (16:08 +0000)
Type: improvement
Change-Id: Idb318eb386617013015c43153bf0bd92fa28b9b6
Signed-off-by: Tom Jones <thj@freebsd.org>
src/svm/svm_common.h

index e3aaba9..0e19ffd 100644 (file)
@@ -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>