freebsd-ports/devel/upp/files/patch-uppsrc-Core-Core.h
Martin Wilke ef5eac6fc1 - Fix build with gcc 4.2
PR:		114745
Submitted by:	Matthias Sund <m.sund@arcor.de> (maintainer)
2007-07-27 16:39:56 +00:00

19 lines
390 B
C++

--- uppsrc/Core/Core.h.orig Thu Jul 19 19:57:53 2007
+++ uppsrc/Core/Core.h Thu Jul 19 19:59:16 2007
@@ -300,8 +300,16 @@
#include <string>
#ifdef PLATFORM_POSIX
+#ifdef COMPILER_GCC
+#if __GNUC__ > 3
+#include <ext/atomicity.h>
+#else
+#include <bits/atomicity.h>
+#endif
+#else
#include <bits/atomicity.h>
#endif
+#endif
// fix MSC8 beta problem....
#ifdef COMPILER_MSC