packages/net/sysuh3c/patches/100-gcc-10.patch
2024-10-19 18:29:48 +08:00

26 lines
498 B
Diff

--- a/h3c.h
+++ b/h3c.h
@@ -120,19 +120,19 @@
#define MD5_XOR 0
#define MD5_MD5 1
-struct eapol {
+extern struct eapol {
unsigned char version;
unsigned char type;
unsigned short length;
}__attribute__ ((packed)) eapol;
-struct eap {
+extern struct eap {
unsigned char code;
unsigned char id;
unsigned short length;
}__attribute__ ((packed)) eap;
-struct packet {
+extern struct packet {
struct ether_header eth_header;
struct eapol eapol_header;
struct eap eap_header;