Skip to content

Commit

Permalink
windows: add forward declaration to dpif-netlink
Browse files Browse the repository at this point in the history
dpif_netlink_port_query__ is used before it is defined on Windows.

Add a forward declaration to it.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Sairam Venugopal <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
Alin Serdean authored and shettyg committed Mar 7, 2017
1 parent dc4be65 commit 5517b83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dpif-netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ VLOG_DEFINE_THIS_MODULE(dpif_netlink);
#ifdef _WIN32
#include "wmi.h"
enum { WINDOWS = 1 };
static int dpif_netlink_port_query__(const struct dpif_netlink *dpif,
odp_port_t port_no, const char *port_name,
struct dpif_port *dpif_port);
#else
enum { WINDOWS = 0 };
#endif
Expand Down

0 comments on commit 5517b83

Please sign in to comment.