svm: add standard include for __WORDSIZE 84/30784/7
authorNathan Moos <nmoos@cisco.com>
Fri, 15 Jan 2021 22:03:01 +0000 (14:03 -0800)
committerDamjan Marion <dmarion@me.com>
Wed, 20 Jan 2021 15:21:55 +0000 (15:21 +0000)
Type: fix

In glibc, the __WORDSIZE macro is defined in a header included
indirectly from svm_common.h. In musl, the __WORDSIZE macro is not
indirectly included, so this patch directly includes <sys/user.h> to
ensure the __WORDSIZE macro is available.

Change-Id: If1b1fc97161b7a0b2e82351d4776c81c36a323cb
Signed-off-by: Nathan Moos <nmoos@cisco.com>
src/svm/svm_common.h

index 3a3db5d..1f1132a 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdarg.h>
 #include <pthread.h>
+#include <sys/user.h>
 #include <vppinfra/types.h>
 
 #define SVM_VERSION ((1<<16) | 1)      /* set to declare region ready. */