Package: icedove / 1:52.3.0-4~deb8u2

porting-kfreebsd-hurd/Allow-ipc-code-to-build-on-GNU-kfreebsd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Mike Hommey <mh@glandium.org>
Date: Thu, 30 Jun 2011 18:29:22 +0200
Subject: Allow ipc code to build on GNU/kfreebsd

---
 mozilla/ipc/chromium/src/base/platform_thread_posix.cc | 6 +++++-
 mozilla/ipc/chromium/src/build/build_config.h          | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/mozilla/ipc/chromium/src/base/platform_thread_posix.cc b/mozilla/ipc/chromium/src/base/platform_thread_posix.cc
index 6c97833..ad55ae7 100644
--- a/mozilla/ipc/chromium/src/base/platform_thread_posix.cc
+++ b/mozilla/ipc/chromium/src/base/platform_thread_posix.cc
@@ -51,7 +51,11 @@ PlatformThreadId PlatformThread::CurrentId() {
 #ifdef MOZ_WIDGET_GONK
   return (intptr_t) (pthread_self());
 #else
-  return syscall(__NR_gettid);
+#ifdef __NR_gettid
+   return syscall(__NR_gettid);
+#else
+   return getpid();
+#endif
 #endif
 #elif defined(OS_OPENBSD) || defined(__GLIBC__)
   return (intptr_t) (pthread_self());
diff --git a/mozilla/ipc/chromium/src/build/build_config.h b/mozilla/ipc/chromium/src/build/build_config.h
index 390fa77..9f02876 100644
--- a/mozilla/ipc/chromium/src/build/build_config.h
+++ b/mozilla/ipc/chromium/src/build/build_config.h
@@ -22,7 +22,7 @@
 #define OS_LINUX 1
 #elif defined(__APPLE__)
 #define OS_MACOSX 1
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__GLIBC__)
 #define OS_LINUX 1
 #elif defined(__DragonFly__)
 #define OS_DRAGONFLY 1