svm: Include stdint on FreeBSD 72/40272/2
authorTom Jones <thj@freebsd.org>
Fri, 26 Jan 2024 17:32:02 +0000 (17:32 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 13 Feb 2024 16:25:18 +0000 (16:25 +0000)
On FreeBSD we need to include stdint.h to get __WORDSIZE.

Type: improvement
Change-Id: I784aa0856fd8298f33016b7ccedecfa3672d5429
Signed-off-by: Tom Jones <thj@freebsd.org>
src/svm/svm_common.h

index c0581f2..e3aaba9 100644 (file)
@@ -19,6 +19,9 @@
 #define __included_svm_common_h__
 
 #include <stdarg.h>
+#ifdef __FreeBSD__
+#include <stdint.h>
+#endif /* __FreeBSD__ */
 #include <pthread.h>
 #include <sys/user.h>
 #include <vppinfra/clib.h>