summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagna.gianfranco@gmail.com>2019-09-06 14:36:26 +0200
committerKhem Raj <raj.khem@gmail.com>2019-09-06 08:40:59 -0700
commit0c05d498776d49991756718774ece13af837819b (patch)
tree3e8e3f57c502caea51fe5779ee86e71edaa52126 /meta-networking
parent0797189c3b26d29f72c742c69780c8f70a0caa6b (diff)
downloadmeta-openembedded-0c05d498776d49991756718774ece13af837819b.tar.gz
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>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-devtools/grpc/grpc/0001-Define-gettid-only-for-glibc-2.30.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-networking/recipes-devtools/grpc/grpc/0001-Define-gettid-only-for-glibc-2.30.patch b/meta-networking/recipes-devtools/grpc/grpc/0001-Define-gettid-only-for-glibc-2.30.patch
index c6afff2d2..4f9b115ec 100644
--- a/meta-networking/recipes-devtools/grpc/grpc/0001-Define-gettid-only-for-glibc-2.30.patch
+++ b/meta-networking/recipes-devtools/grpc/grpc/0001-Define-gettid-only-for-glibc-2.30.patch
@@ -20,7 +20,7 @@ index 561276f0c2..25a74864a1 100644
20 #include <time.h> 20 #include <time.h>
21 #include <unistd.h> 21 #include <unistd.h>
22 22
23+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 29) 23+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 30)
24+#include <unistd.h> 24+#include <unistd.h>
25+#else 25+#else
26 static long gettid(void) { return syscall(__NR_gettid); } 26 static long gettid(void) { return syscall(__NR_gettid); }
@@ -38,7 +38,7 @@ index 08116b3ab5..d3d3025111 100644
38 38
39-#ifndef NDEBUG 39-#ifndef NDEBUG
40+#if !defined(DEBUG) 40+#if !defined(DEBUG)
41+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 29) 41+#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 30)
42+#include <unistd.h> 42+#include <unistd.h>
43+#else 43+#else
44 static long gettid(void) { return syscall(__NR_gettid); } 44 static long gettid(void) { return syscall(__NR_gettid); }