GNOME Bugzilla – Bug 660177
Fix build on systems without gettid(2) system call
Last modified: 2012-03-14 16:21:05 UTC
Created attachment 197513 [details] [review] use getpid when gettid is not available. gettid() (and SYS_gettid()) don't exist on OpenBSD/FreeBSD and various others. The usage of this syscall breaks the build of GOA on those platforms. The closest thing to it's functionality is getpid(), which I think is OK to use for the usage case of GOA (logging). OK to push this patch?
We actually want the thread-id since it's used to distinguish output from different threads. OK to push the patch to master if you add a note saying /* TODO: Need to find a portable way of getting the thread ID (#660177) */ above the #ifdef. Thanks.
Allright, thanks.
*** Bug 664545 has been marked as a duplicate of this bug. ***