svm: Only include sys/user on Linux
[vpp.git] / 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>