mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
ec8b911d7c
commit
097f41f264
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user