mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
NetBSD: Fix compile
On NetBSD the ethernet header is net/if_ether.h This also pulls in net/if.h which defines if_type, which in turn conflicts with an enum in wpa_supplicant. As such we need to include this at the bottom rather than at the top. Signed-off-by: Roy Marples <roy@marples.name>
This commit is contained in:
parent
d0d303ae91
commit
7846e8d608
@ -11,9 +11,6 @@
|
||||
#include <netinet/ip.h>
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
#if !defined(__CYGWIN__) && !defined(CONFIG_NATIVE_WINDOWS)
|
||||
#include <net/ethernet.h>
|
||||
#endif
|
||||
#include "utils/common.h"
|
||||
#include "utils/eloop.h"
|
||||
#include "utils/uuid.h"
|
||||
@ -60,6 +57,12 @@
|
||||
#include "dpp_supplicant.h"
|
||||
#include "sme.h"
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#include <net/if_ether.h>
|
||||
#elif !defined(__CYGWIN__) && !defined(CONFIG_NATIVE_WINDOWS)
|
||||
#include <net/ethernet.h>
|
||||
#endif
|
||||
|
||||
static int wpa_supplicant_global_iface_list(struct wpa_global *global,
|
||||
char *buf, int len);
|
||||
static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global,
|
||||
|
Loading…
Reference in New Issue
Block a user