[dpdk-dev,1/2] vhost: move stdbool header file to vhost.h
Checks
Commit Message
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
The vhost.h file uses bool type, but not include stdbool
header file. If other c files include vhost.h directly,
there will be a compile error.
This patch will be used in the next patch.
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
lib/librte_vhost/socket.c | 1 -
lib/librte_vhost/vhost.h | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
Comments
On 03/28/2018 07:49 AM, xiangxia.m.yue@gmail.com wrote:
> From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
>
> The vhost.h file uses bool type, but not include stdbool
> header file. If other c files include vhost.h directly,
> there will be a compile error.
>
> This patch will be used in the next patch.
>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
> ---
> lib/librte_vhost/socket.c | 1 -
> lib/librte_vhost/vhost.h | 1 +
> 2 files changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Maxime Cqouelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
@@ -4,7 +4,6 @@
#include <stdint.h>
#include <stdio.h>
-#include <stdbool.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
@@ -6,6 +6,7 @@
#define _VHOST_NET_CDEV_H_
#include <stdint.h>
#include <stdio.h>
+#include <stdbool.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <unistd.h>