Skip to content

Commit

Permalink
:feat: support compile with lower glibc version
Browse files Browse the repository at this point in the history
  • Loading branch information
libinyl committed Sep 6, 2020
1 parent 8f68ff9 commit 20440dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
*/
#include "../code/log/log.h"
#include "../code/pool/threadpool.h"
#include <features.h>

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

void TestLog() {
int cnt = 0, level = 0;
Expand Down

0 comments on commit 20440dd

Please sign in to comment.