aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-08-26 23:28:40 +0000
committerCy Schubert <cy@FreeBSD.org>2021-09-04 14:24:31 +0000
commite3928ece86ca9cae6734278d4e40673b21fed417 (patch)
tree8804a8707a90c2baab508dd8d3ace6e23c4cfbe3
parent4ca38a4c3659c65ba491423a94cb79eae5f60bf8 (diff)
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 213ceba977def36470df3abfe1fac47f689130c1)
-rw-r--r--contrib/wpa/src/common/dhcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/wpa/src/common/dhcp.h b/contrib/wpa/src/common/dhcp.h
index d28445e7cbd7..ff52483b12eb 100644
--- a/contrib/wpa/src/common/dhcp.h
+++ b/contrib/wpa/src/common/dhcp.h
@@ -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