Make some sizeof tests linux-only.

net_crypto has pthread types in its struct, so its size is system
dependent. In particular, the sizes are wrong on FreeBSD.
This commit is contained in:
iphydf 2018-02-19 13:35:41 +00:00
parent ec8b911d7c
commit 097f41f264
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -207,8 +207,10 @@ int main(int argc, char *argv[])
CHECK_SIZE(Messenger_Options, 72);
CHECK_SIZE(Receipts, 16);
// toxcore/net_crypto
#ifdef __linux__
CHECK_SIZE(Crypto_Connection, 525392);
CHECK_SIZE(Net_Crypto, 272);
#endif
CHECK_SIZE(New_Connection, 168);
CHECK_SIZE(Packet_Data, 1384);
CHECK_SIZE(Packets_Array, 262152);