Skip to content

Commit

Permalink
lkl: Resolve netdevs_remove linker error on Win32
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Collins <[email protected]>
  • Loading branch information
pscollins committed Mar 18, 2016
1 parent b957f80 commit 61475a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/lkl/lib/nt-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,10 @@ struct lkl_dev_blk_ops lkl_dev_blk_ops = {
.get_capacity = handle_get_capacity,
.request = blk_request,
};

/* Needed to resolve linker error on Win32. We don't really support
* any network IO on Windows, anyway, so there's no loss here. */
int lkl_netdevs_remove(void)
{
return -1;
}

0 comments on commit 61475a3

Please sign in to comment.