summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index f907b9b5..c9fb4637 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -185,10 +185,12 @@ typedef struct __attribute__ ((__packed__))
185} 185}
186IP; 186IP;
187 187
188typedef struct __attribute__ ((__packed__)) IP_Port { 188typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct))
189{
189 IP ip; 190 IP ip;
190 uint16_t port; 191 uint16_t port;
191} IP_Port; 192}
193IP_Port;
192 194
193#define TOX_ENABLE_IPV6_DEFAULT 1 195#define TOX_ENABLE_IPV6_DEFAULT 1
194 196