wpa: Enclose FreeBSD specific defines

FreeBSD only defines are specific only to FreeBSD. Document them as such.
It is our intention to push this change to w1.fi.

(cherry picked from commit 213ceba977)
This commit is contained in:
Cy Schubert 2021-08-26 16:28:40 -07:00
parent 4ca38a4c36
commit e3928ece86

View file

@ -9,6 +9,7 @@
#ifndef DHCP_H
#define DHCP_H
#if defined(__FreeBSD__)
/*
* Translate Linux to FreeBSD
*/
@ -24,6 +25,7 @@
#define check ip_sum
#define saddr ip_src
#define daddr ip_dst
#endif
#include <netinet/ip.h>
#if __FAVOR_BSD