Skip to content

Commit

Permalink
Fix compile error about SOL_TLS and TCP_ULP macros introduced after g…
Browse files Browse the repository at this point in the history
…libc 2.27
  • Loading branch information
yixinglu committed Feb 21, 2022
1 parent d8df521 commit ea828c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fizz/experimental/ktls/LinuxKTLS.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@

#if defined(__linux__) && !FOLLY_MOBILE
#include <linux/version.h>
#include <gnu/libc-version.h>

// Minimum version of linux uapi headers we require; this is when linux/tls.h
// was introduced
#if LINUX_VERSION_CODE < 265216
#if (LINUX_VERSION_CODE < 265216) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 27)
#define FIZZ_PLATFORM_CAPABLE_KTLS 0
#else
#define FIZZ_PLATFORM_CAPABLE_KTLS 1
Expand Down

0 comments on commit ea828c8

Please sign in to comment.