git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301a98b
)
sparse: Include stddef.h to ensure NULL is defined.
author
Simon Horman
<horms@verge.net.au>
Mon, 25 Nov 2013 03:41:33 +0000
(12:41 +0900)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/include/sparse/sys/socket.h
b/include/sparse/sys/socket.h
index
64b905e
..
75ee43c
100644
(file)
--- 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;