* [gentoo-commits] gentoo-x86 commit in games-util/gtkevemon/files: gtkevemon-1.8-pthreads-build-fix.patch
@ 2012-09-24 14:58 Alex Alexander (wired)
0 siblings, 0 replies; only message in thread
From: Alex Alexander (wired) @ 2012-09-24 14:58 UTC (permalink / raw
To: gentoo-commits
wired 12/09/24 14:58:07
Added: gtkevemon-1.8-pthreads-build-fix.patch
Log:
pthreads build fix, bug #423305
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Revision Changes Path
1.1 games-util/gtkevemon/files/gtkevemon-1.8-pthreads-build-fix.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/gtkevemon/files/gtkevemon-1.8-pthreads-build-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/gtkevemon/files/gtkevemon-1.8-pthreads-build-fix.patch?rev=1.1&content-type=text/plain
Index: gtkevemon-1.8-pthreads-build-fix.patch
===================================================================
https://bugs.gentoo.org/show_bug.cgi?id=423305
https://bitbucket.org/BattleClinic/gtkevemon/changeset/4c365033418e
# HG changeset patch
# User ChickenMan <chickenman@exhale.de>
# Date 1341445681 -7200
# Node ID 4c365033418e2213caff57a0917851cc18c7f1a1
# Parent 0b8a490b5f491bdd4a36d85918479595c861d3db
Fix compilation on systems using pthreads and gcc 4.7.x
This fixes issue 1.
Thanks to l0ser140 for reporting and initial patch.
--- src/thread.h
+++ src/thread.h
@@ -13,7 +13,15 @@
#ifndef THREAD_HEADER
#define THREAD_HEADER
-#if defined(_POSIX_THREADS) || defined(__SunOS)
+#if defined(__linux__) \
+ || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) \
+ || defined(__DragonFly__) \
+ || defined(__APPLE__) \
+ || defined(__SunOS)
+# include <unistd.h> // for _POSIX_THREADS
+#endif
+
+#if defined(_POSIX_THREADS)
# include "thread_posix.h"
#elif defined(WIN32)
# include "thread_win32.h"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-24 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 14:58 [gentoo-commits] gentoo-x86 commit in games-util/gtkevemon/files: gtkevemon-1.8-pthreads-build-fix.patch Alex Alexander (wired)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox