summaryrefslogtreecommitdiff
path: root/include/sparse
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-11-25 12:41:33 +0900
committerBen Pfaff <blp@nicira.com>2013-11-25 12:56:03 -0800
commit4d3daf048134e8c375fdadcec7e51d1dc28fe0b6 (patch)
treeb009cd59c938335d7e2c28e28323ce92da6c1067 /include/sparse
parent301a98b1d86328164e47f0f336af161c7612b992 (diff)
downloadopenvswitch-4d3daf048134e8c375fdadcec7e51d1dc28fe0b6.tar.gz
sparse: Include stddef.h to ensure NULL is defined.
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@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/sparse')
-rw-r--r--include/sparse/sys/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sparse/sys/socket.h b/include/sparse/sys/socket.h
index 64b905e54..75ee43c6c 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;