rtbsd: Include necessary headers on rtbsd.h.
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Mon, 27 Jul 2015 17:24:18 +0000 (14:24 -0300)
committerBen Pfaff <blp@nicira.com>
Mon, 27 Jul 2015 22:44:38 +0000 (15:44 -0700)
rtbsd.h requires net/if.h for IF_NAMESIZE. This was not caught because rtbsd.c
did not include rtbsd.h as its first header.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/rtbsd.c
lib/rtbsd.h

index c3dbdca..8fc88e4 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <config.h>
 
+#include "rtbsd.h"
+
 #include <unistd.h>
 #include <errno.h>
 #include <sys/socket.h>
@@ -27,7 +29,6 @@
 #include "socket-util.h"
 #include "poll-loop.h"
 #include "openvswitch/vlog.h"
-#include "rtbsd.h"
 
 VLOG_DEFINE_THIS_MODULE(rtbsd);
 COVERAGE_DEFINE(rtbsd_changed);
index 5dfbaff..d6b79f3 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef RTBSD_H
 #define RTBSD_H 1
 
+#include <net/if.h>
 #include "list.h"
 
 /*