From: Wenkai Lin linwenkai6@hisilicon.com
Header files are not self contained, fix it.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- include/wd.h | 1 + include/wd_alg_common.h | 1 + include/wd_cipher.h | 1 + include/wd_sched.h | 1 + include/wd_util.h | 2 ++ 5 files changed, 6 insertions(+)
diff --git a/include/wd.h b/include/wd.h index 0e67cad..6ee2ef5 100644 --- a/include/wd.h +++ b/include/wd.h @@ -7,6 +7,7 @@ #ifndef __WD_H #define __WD_H #include <errno.h> +#include <numa.h> #include <fcntl.h> #include <stdbool.h> #include <stdint.h> diff --git a/include/wd_alg_common.h b/include/wd_alg_common.h index 77845a4..5652db3 100644 --- a/include/wd_alg_common.h +++ b/include/wd_alg_common.h @@ -9,6 +9,7 @@
#include <pthread.h> #include <stdbool.h> +#include <numa.h> #include "wd.h" #include "wd_alg.h"
diff --git a/include/wd_cipher.h b/include/wd_cipher.h index 7e63402..a712b53 100644 --- a/include/wd_cipher.h +++ b/include/wd_cipher.h @@ -8,6 +8,7 @@ #define __WD_CIPHER_H
#include <dlfcn.h> +#include <asm/types.h> #include "wd_alg_common.h"
#ifdef __cplusplus diff --git a/include/wd_sched.h b/include/wd_sched.h index a492d70..b145172 100644 --- a/include/wd_sched.h +++ b/include/wd_sched.h @@ -6,6 +6,7 @@
#ifndef SCHED_SAMPLE_h #define SCHED_SAMPLE_h +#include <asm/types.h> #include "wd_alg_common.h"
#ifdef __cplusplus diff --git a/include/wd_util.h b/include/wd_util.h index be9798c..78c5d23 100644 --- a/include/wd_util.h +++ b/include/wd_util.h @@ -13,7 +13,9 @@ #include <sys/shm.h> #include <asm/types.h>
+#include "wd.h" #include "wd_sched.h" +#include "wd_alg.h"
#ifdef __cplusplus extern "C" {