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.

MFC after:	1 week
This commit is contained in:
Cy Schubert 2021-08-26 16:28:40 -07:00
parent 81b521d2c0
commit 213ceba977

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