edward
unread,Nov 11, 2009, 12:20:31 PM11/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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