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%60.5.1-1+rpi1~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4cf030bbf2f726447036161689e3e3ffc477ad90;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 21398dc8a5..481549eabb 100644 --- a/ipc/chromium/src/base/platform_thread_posix.cc +++ b/ipc/chromium/src/base/platform_thread_posix.cc @@ -49,6 +49,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 eba9e47ec3..9e90d8a211 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