Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2021 14:00:29 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 213ceba977de - main - wpa: Enclose FreeBSD specific defines
Message-ID:  <202108301400.17UE0T9j038993@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=213ceba977def36470df3abfe1fac47f689130c1

commit 213ceba977def36470df3abfe1fac47f689130c1
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-08-26 23:28:40 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-08-30 13:59:18 +0000

    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
---
 contrib/wpa/src/common/dhcp.h | 2 ++
 1 file changed, 2 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108301400.17UE0T9j038993>