Skip to content

Commit

Permalink
rtbsd: Include necessary headers on rtbsd.h.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and blp committed Jul 27, 2015
1 parent 6767b5e commit 75f697b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rtbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include <config.h>

#include "rtbsd.h"

#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions lib/rtbsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef RTBSD_H
#define RTBSD_H 1

#include <net/if.h>
#include "list.h"

/*
Expand Down

0 comments on commit 75f697b

Please sign in to comment.