Skip to content

Commit 2814301

Browse files
committed
Fix build
1 parent 27c25ae commit 2814301

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

protocol/udpgw_proto.h

+3-10
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,15 @@
3333

3434
#include <misc/bsize.h>
3535
#include <misc/packed.h>
36+
#ifdef __ANDROID__
37+
#include <misc/socks_proto.h>
38+
#endif
3639

3740
#define UDPGW_CLIENT_FLAG_KEEPALIVE (1 << 0)
3841
#define UDPGW_CLIENT_FLAG_REBIND (1 << 1)
3942
#define UDPGW_CLIENT_FLAG_DNS (1 << 2)
4043
#define UDPGW_CLIENT_FLAG_IPV6 (1 << 3)
4144

42-
#ifdef __ANDROID__
43-
B_START_PACKED
44-
struct socks_udp_header {
45-
uint16_t rsv;
46-
uint8_t frag;
47-
uint8_t atyp;
48-
} B_PACKED;
49-
B_END_PACKED
50-
#endif
51-
5245
B_START_PACKED
5346
struct udpgw_header {
5447
uint8_t flags;

0 commit comments

Comments
 (0)