diff options
-rw-r--r-- | toxcore/network.h | 6 |
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 | } |
186 | IP; | 186 | IP; |
187 | 187 | ||
188 | typedef struct __attribute__ ((__packed__)) IP_Port { | 188 | typedef 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 | } |
193 | IP_Port; | ||
192 | 194 | ||
193 | #define TOX_ENABLE_IPV6_DEFAULT 1 | 195 | #define TOX_ENABLE_IPV6_DEFAULT 1 |
194 | 196 | ||