Include stdlib.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 <ho...@verge.net.au>
---
 include/sparse/sys/socket.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/sparse/sys/socket.h b/include/sparse/sys/socket.h
index 64b905e..46a22d5 100644
--- a/include/sparse/sys/socket.h
+++ b/include/sparse/sys/socket.h
@@ -21,6 +21,8 @@
 #ifndef __SYS_SOCKET_SPARSE
 #define __SYS_SOCKET_SPARSE 1
 
+#include <stdlib.h>
+
 #include "openvswitch/types.h"
 #include <sys/uio.h>
 
-- 
1.8.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to