ports/net/gamenetworkingsockets/files/patch-include_steam_steamclientpublic.h
Vanilla I. Shu 8e1e5df81a net/gamenetworkingsockets: add new ports.
GameNetworkingSockets is Valve's semi-recently open-sourced networking
library.

It supports a number of very useful features, including:

- Reliable & unreliable messages over UDP.
- Robust message fragmentation & reassembly.
- P2P networking / NAT traversal. Encryption.

PR:		256295
Reported by:	Karsten Pedersen <kpedersen at disroot.org>
2021-06-01 23:03:55 +08:00

11 lines
587 B
C

--- include/steam/steamclientpublic.h.orig 2021-05-31 13:43:13 UTC
+++ include/steam/steamclientpublic.h
@@ -1257,7 +1257,7 @@ typedef void *BREAKPAD_HANDLE;
#define VALVE_CALLBACK_PACK_LARGE
#else
- #if defined(__linux__) || defined(__APPLE__)
+ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
// The 32-bit version of gcc has the alignment requirement for uint64 and double set to
// 4 meaning that even with #pragma pack(8) these types will only be four-byte aligned.
// The 64-bit version of gcc has the alignment requirement for these types set to