File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,6 +118,25 @@ typedef char SteamNetworkingErrMsg[ 1024 ];
118118 #define USE_POLL
119119
120120 #define PlatformSupportsRecvTOS () true
121+
122+ // Depending on compiler flags, these might not be defined. But they are
123+ // part of the kernel ABI, so hardcoding the value is safe.
124+ #ifdef IP_RECVTOS
125+ COMPILE_TIME_ASSERT ( IP_RECVTOS == 27 );
126+ #else
127+ #define IP_RECVTOS 27
128+ #endif
129+ #ifdef IPV6_RECVTCLASS
130+ COMPILE_TIME_ASSERT ( IPV6_RECVTCLASS == 35 );
131+ #else
132+ #define IPV6_RECVTCLASS 35
133+ #endif
134+ #ifdef IPV6_TCLASS
135+ COMPILE_TIME_ASSERT ( IPV6_TCLASS == 36 );
136+ #else
137+ #define IPV6_TCLASS 36
138+ #endif
139+
121140 #elif defined(__FreeBSD__)
122141
123142 // FreeBSD provides kqueue, but we don't support it, so just use old-school poll()
You can’t perform that action at this time.
0 commit comments