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 a5d8f3f commit 80baa55
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 80baa55

Please sign in to comment.