diff mbox

xenstore: add stddef.h to xenstore_lib.h

Message ID 1453914369-24092-1-git-send-email-ian.campbell@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Campbell Jan. 27, 2016, 5:06 p.m. UTC
xs_perm_to_string takes a size_t which isn't defined by anything
pulled in directly by this header.

Given the other headers xenstore_lib.h pulls in this looks to be an
oversight rather than a deliberate policy.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 tools/xenstore/include/xenstore_lib.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Wei Liu Jan. 28, 2016, 10:37 a.m. UTC | #1
On Wed, Jan 27, 2016 at 05:06:09PM +0000, Ian Campbell wrote:
> xs_perm_to_string takes a size_t which isn't defined by anything
> pulled in directly by this header.
> 
> Given the other headers xenstore_lib.h pulls in this looks to be an
> oversight rather than a deliberate policy.
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>
Ian Campbell Feb. 3, 2016, 11:50 a.m. UTC | #2
On Thu, 2016-01-28 at 10:37 +0000, Wei Liu wrote:
> On Wed, Jan 27, 2016 at 05:06:09PM +0000, Ian Campbell wrote:
> > xs_perm_to_string takes a size_t which isn't defined by anything
> > pulled in directly by this header.
> > 
> > Given the other headers xenstore_lib.h pulls in this looks to be an
> > oversight rather than a deliberate policy.
> > 
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> 
> Acked-by: Wei Liu <wei.liu2@citrix.com>

Applied,thanks.
diff mbox

Patch

diff --git a/tools/xenstore/include/xenstore_lib.h b/tools/xenstore/include/xenstore_lib.h
index 5a10c6c..462b7b9 100644
--- a/tools/xenstore/include/xenstore_lib.h
+++ b/tools/xenstore/include/xenstore_lib.h
@@ -19,6 +19,7 @@ 
 #ifndef XENSTORE_LIB_H
 #define XENSTORE_LIB_H
 
+#include <stddef.h>
 #include <stdbool.h>
 #include <limits.h>
 #include <errno.h>