[ovs-dev] [PATCH] sparse: Include stddef.h to ensure NULL is defined.
Simon Horman
horms at verge.net.au
Mon Nov 25 03:41:33 UTC 2013
Include stddef.h in include/sparse/sys/socket.h to ensure
that NULL is defined and thus avoid the following sparse warning.
./include/sparse/sys/socket.h:74:15: error: undefined identifier 'NULL'
Signed-off-by: Simon Horman <horms at verge.net.au>
---
include/sparse/sys/socket.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/sparse/sys/socket.h b/include/sparse/sys/socket.h
index 64b905e..75ee43c 100644
--- a/include/sparse/sys/socket.h
+++ b/include/sparse/sys/socket.h
@@ -23,6 +23,7 @@
#include "openvswitch/types.h"
#include <sys/uio.h>
+#include <stddef.h>
typedef unsigned short int sa_family_t;
typedef __socklen_t socklen_t;
--
1.8.4
More information about the dev
mailing list