From: Mike Hommey Date: Thu, 30 Jun 2011 16:29:22 +0000 (+0200) Subject: Allow ipc code to build on GNU/kfreebsd X-Git-Tag: archive/raspbian/1%102.15.0-1_deb10u1+rpi1^2^2^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=806387896785df7ad7b3c7455c01144921fdf131;p=thunderbird.git Allow ipc code to build on GNU/kfreebsd Gbp-Pq: Topic porting-kfreebsd-hurd Gbp-Pq: Name Allow-ipc-code-to-build-on-GNU-kfreebsd.patch --- diff --git a/ipc/chromium/src/base/platform_thread_posix.cc b/ipc/chromium/src/base/platform_thread_posix.cc index 7c866b84c0..e0d6726e9f 100644 --- a/ipc/chromium/src/base/platform_thread_posix.cc +++ b/ipc/chromium/src/base/platform_thread_posix.cc @@ -51,6 +51,11 @@ PlatformThreadId PlatformThread::CurrentId() { return port; #elif defined(OS_LINUX) return syscall(__NR_gettid); +#ifdef __NR_gettid + return syscall(__NR_gettid); +#else + return getpid(); +#endif #elif defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(__GLIBC__) return (intptr_t)(pthread_self()); #elif defined(OS_NETBSD) diff --git a/ipc/chromium/src/build/build_config.h b/ipc/chromium/src/build/build_config.h index de26701b2d..c5979b432f 100644 --- a/ipc/chromium/src/build/build_config.h +++ b/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