From 2814301fbd7e1838634580a18a34f8b68587f931 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 2 Nov 2024 01:01:56 -0700 Subject: [PATCH] Fix build --- protocol/udpgw_proto.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/protocol/udpgw_proto.h b/protocol/udpgw_proto.h index 7978ccdb5..f927136a1 100644 --- a/protocol/udpgw_proto.h +++ b/protocol/udpgw_proto.h @@ -33,22 +33,15 @@ #include #include +#ifdef __ANDROID__ +#include +#endif #define UDPGW_CLIENT_FLAG_KEEPALIVE (1 << 0) #define UDPGW_CLIENT_FLAG_REBIND (1 << 1) #define UDPGW_CLIENT_FLAG_DNS (1 << 2) #define UDPGW_CLIENT_FLAG_IPV6 (1 << 3) -#ifdef __ANDROID__ -B_START_PACKED -struct socks_udp_header { - uint16_t rsv; - uint8_t frag; - uint8_t atyp; -} B_PACKED; -B_END_PACKED -#endif - B_START_PACKED struct udpgw_header { uint8_t flags;