mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
grpc: don't use unexisting gettid function on glibc 2.29, it has been implemented only in 2.30
https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92 Signed-off-by: Francesco Mocci <francesco.mocci@abinsula.com> Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
0797189c3b
commit
0c05d49877
@ -20,7 +20,7 @@ index 561276f0c2..25a74864a1 100644
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 29)
|
||||
+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 30)
|
||||
+#include <unistd.h>
|
||||
+#else
|
||||
static long gettid(void) { return syscall(__NR_gettid); }
|
||||
@ -38,7 +38,7 @@ index 08116b3ab5..d3d3025111 100644
|
||||
|
||||
-#ifndef NDEBUG
|
||||
+#if !defined(DEBUG)
|
||||
+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 29)
|
||||
+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 30)
|
||||
+#include <unistd.h>
|
||||
+#else
|
||||
static long gettid(void) { return syscall(__NR_gettid); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user