diff options
author | Nathan Moos <nmoos@cisco.com> | 2021-01-15 14:03:01 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-01-20 15:21:55 +0000 |
commit | cf5ba26700845b3956beb71314875fa192f5b711 (patch) | |
tree | bd240cfc3f4ba3386f31cd02ae2104c2e9a5e723 /src/svm/svm_common.h | |
parent | bfa0398f7a9f58a28d9b3f552b451da267a3c8a5 (diff) |
svm: add standard include for __WORDSIZE
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>
Diffstat (limited to 'src/svm/svm_common.h')
-rw-r--r-- | src/svm/svm_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h index 3a3db5d2f3c..1f1132afdc2 100644 --- a/src/svm/svm_common.h +++ b/src/svm/svm_common.h @@ -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. */ |