|
|
Message-ID:
<CO6PR11MB5602E5F4D9E52DCCD6301400EDEBA@CO6PR11MB5602.namprd11.prod.outlook.com>
Date: Tue, 14 Oct 2025 09:13:48 +0000
From: "Chen, Qi" <Qi.Chen@...driver.com>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
CC: "Chen, Qi" <Qi.Chen@...driver.com>
Subject: RE: [PATCH 1/2] include/netinet/if_ether.h: define
__UAPI_DEF_ETHHDR early
ping
-----Original Message-----
From: Chen, Qi <Qi.Chen@...driver.com>
Sent: Tuesday, September 30, 2025 10:46 AM
To: musl@...ts.openwall.com
Cc: Chen, Qi <Qi.Chen@...driver.com>
Subject: [musl][PATCH 1/2] include/netinet/if_ether.h: define __UAPI_DEF_ETHHDR early
From: Chen Qi <Qi.Chen@...driver.com>
After 'struct ethhdr' is defined, we should immediately define __UAPI_DEF_ETHHDR. Because the following lines are header inclusion lines which might introduce header files checking __UAPI_DEF_ETHHDR.
If we don't define this macro early, we will get redefinition error.
Signed-off-by: Chen Qi <Qi.Chen@...driver.com>
---
include/netinet/if_ether.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h index 3479f511..b1646f6f 100644
--- a/include/netinet/if_ether.h
+++ b/include/netinet/if_ether.h
@@ -117,6 +117,7 @@ struct ethhdr {
uint8_t h_source[ETH_ALEN];
uint16_t h_proto;
};
+#define __UAPI_DEF_ETHHDR 0
#include <net/ethernet.h>
#include <net/if_arp.h>
@@ -144,6 +145,4 @@ do { \
(enaddr)[5] = ((uint8_t *)ipaddr)[3]; \ } while(0)
-#define __UAPI_DEF_ETHHDR 0
-
#endif
--
2.34.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.