Update patch for kfreebsd support
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Nobuhiro Iwamatsu
11 years ago
1 | 1 | Forwarded: None |
2 | 2 | Author: Nobuhiri Iwamatsu <iwamatsu@debian.org> |
3 | 3 | Bug-Debian: No |
4 | Last-Update: 2012-09-06 | |
4 | Last-Update: 2013-01-07 | |
5 | 5 | |
6 | 6 | diff --git a/base/base.gyp b/base/base.gyp |
7 | 7 | index e2773bc..2f64dd8 100755 |
90 | 90 | 1 + tm_time.tm_mon, |
91 | 91 | tm_time.tm_mday, |
92 | 92 | diff --git a/base/mutex.cc b/base/mutex.cc |
93 | index 4e34ec9..f6560b2 100755 | |
93 | index 4e34ec9..7379378 100755 | |
94 | 94 | --- a/base/mutex.cc |
95 | 95 | +++ b/base/mutex.cc |
96 | 96 | @@ -61,7 +61,8 @@ namespace mozc { |
103 | 103 | // Linux doesn't provide InterlockedCompareExchange-like function. |
104 | 104 | inline int InterlockedCompareExchange(volatile int *target, |
105 | 105 | int new_value, |
106 | @@ -298,7 +299,7 @@ Mutex::Mutex() { | |
107 | pthread_mutexattr_init(&attr); | |
108 | #if defined(OS_MACOSX) | |
109 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
110 | -#elif defined(OS_LINUX) | |
111 | +#elif defined(OS_LINUX) || defined(OS_GNU_KFREEBSD) | |
112 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); | |
113 | #else | |
114 | #error "This platform is not supported." | |
106 | 115 | diff --git a/base/password_manager.cc b/base/password_manager.cc |
107 | 116 | index b597d81..f960955 100755 |
108 | 117 | --- a/base/password_manager.cc |