Skip to content

Commit

Permalink
Fix Compile Error depend Glib version (#13851)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeonghwan Kim authored and pull[bot] committed Feb 18, 2022
1 parent 3f4a259 commit f98710e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/platform/Linux/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
#include <signal.h>
#include <unistd.h>

#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif

using namespace ::chip::app::Clusters;

namespace chip {
Expand Down

0 comments on commit f98710e

Please sign in to comment.