sparse: Include stddef.h to ensure NULL is defined.
authorSimon Horman <horms@verge.net.au>
Mon, 25 Nov 2013 03:41:33 +0000 (12:41 +0900)
committerBen Pfaff <blp@nicira.com>
Mon, 25 Nov 2013 20:56:03 +0000 (12:56 -0800)
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>
include/sparse/sys/socket.h

index 64b905e..75ee43c 100644 (file)
@@ -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;