miniupnpd/bsd/getifstats.c: fix for DragonFly BSD

struct ifnet is private to kernel code and is hidden from the userland
code unless you define a macro _KERNEL_STRUCTURES.  Although other people
argue that it should be exposed as it is on other BSDs, that's the way
it is on DragonFly BSD.

Thanks to YONETANI Tomokazu for DragonFly BSD patches
This commit is contained in:
Thomas Bernard 2014-03-19 12:24:28 +01:00
parent 75cb38edda
commit 5a3a670e89
2 changed files with 4 additions and 0 deletions

1
README
View File

@ -45,3 +45,4 @@ Thanks to :
* Peter Tatrai
* Leo Moll
* Daniel Becker
* Yonetani Tomokazu

View File

@ -12,6 +12,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#if defined(__FreeBSD__) || defined(__DragonFly__)
#ifdef __DragonFly__
#define _KERNEL_STRUCTURES
#endif
#include <net/if_var.h>
#endif
#if defined(__DragonFly__)