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:
ab317c3
)
missing ifdef netbsd guard for af_link_sock
author
YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp>
Tue, 21 May 2013 08:49:57 +0000
(17:49 +0900)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 23 May 2013 03:51:39 +0000
(20:51 -0700)
pointed out by Ed Maste
Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-bsd.c
patch
|
blob
|
history
diff --git
a/lib/netdev-bsd.c
b/lib/netdev-bsd.c
index
0514bf9
..
aeb7545
100644
(file)
--- a/
lib/netdev-bsd.c
+++ b/
lib/netdev-bsd.c
@@
-189,6
+189,7
@@
netdev_bsd_init(void)
return status;
}
+#if defined(__NetBSD__)
af_link_sock = socket(AF_LINK, SOCK_DGRAM, 0);
status = af_link_sock >= 0 ? 0 : errno;
if (status) {
@@
-196,6
+197,7
@@
netdev_bsd_init(void)
close(af_inet_sock);
af_inet_sock = -1;
}
+#endif /* defined(__NetBSD__) */
return status;
}