mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-31 00:26:48 +00:00
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:
parent
75cb38edda
commit
5a3a670e89
1
README
1
README
@ -45,3 +45,4 @@ Thanks to :
|
||||
* Peter Tatrai
|
||||
* Leo Moll
|
||||
* Daniel Becker
|
||||
* Yonetani Tomokazu
|
||||
|
@ -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__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user