Patch for gcc 4.3

8 views
Skip to first unread message

edward

unread,
Nov 11, 2009, 12:20:31 PM11/11/09
to Relacy Race Detector
Hi,

In order to compile using Relacy on gcc 4.3 (64-bit), I've had to make
some minor changes. Patch follows.

Regards,
-Edward

diff -urN relacy_2_0.orig/relacy/platform.hpp relacy_2_0/relacy/
platform.hpp
--- relacy_2_0.orig/relacy/platform.hpp 2009-11-03 12:03:16.000000000
-0500
+++ relacy_2_0/relacy/platform.hpp 2009-11-06 09:05:50.000000000 -0500
@@ -170,7 +170,7 @@
# define RL_STRINGIZE_A(arg) RL_STRINGIZE_I arg
# define RL_STDCALL __stdcall
#else
- typedef unsigned long long uint64_t;
+# include <stdint.h>
# define RL_INLINE inline
# define RL_NOINLINE
# define RL_STRINGIZE_I(text) #text
diff -urN relacy_2_0.orig/relacy/stdlib/pthread.hpp relacy_2_0/relacy/
stdlib/pthread.hpp
--- relacy_2_0.orig/relacy/stdlib/pthread.hpp 2009-11-03
12:03:01.000000000 -0500
+++ relacy_2_0/relacy/stdlib/pthread.hpp 2009-11-06 08:54:52.000000000
-0500
@@ -297,7 +297,21 @@

}

-
+#ifdef EINVAL
+# undef EINVAL
+#endif
+#ifdef ETIMEDOUT
+# undef ETIMEDOUT
+#endif
+#ifdef EBUSY
+# undef EBUSY
+#endif
+#ifdef EINTR
+# undef EINTR
+#endif
+#ifdef EAGAIN
+# undef EAGAIN
+#endif
#define EINVAL rl::RL_EINVAL
#define ETIMEDOUT rl::RL_ETIMEDOUT
#define EBUSY rl::RL_EBUSY

Dmitriy Vyukov

unread,
Nov 30, 2009, 12:57:14 AM11/30/09
to Relacy Race Detector
On my Linux it compiles w\o these #ifdefs :)
Ok, I will incorporate the fix into next release. Thank you once
again!


--
Dmitriy V'jukov
Reply all
Reply to author
Forward
0 new messages