Add CAS emulation for armel.
authorDaniel Kochmanski <dkochmanski@hellsgate.pl>
Sat, 31 Jan 2015 16:04:58 +0000 (17:04 +0100)
committerDaniel Kochmanski <dkochmanski@hellsgate.pl>
Sat, 31 Jan 2015 16:04:58 +0000 (17:04 +0100)
GCC has problems with detecting arm version, and libatomic_ops doesn't
build cleanly for armv5. This patch is taken from PKGBUILDs repository
of archlinuxarm distribution.

Signed-off-by: Daniel Kochmanski <dkochmanski@hellsgate.pl>
src/h/internal.h

index 50fb8a9..595d0a2 100755 (executable)
@@ -422,6 +422,7 @@ extern void cl_write_object(cl_object x, cl_object stream);
 #endif /* ECL_THREADS */
 
 #ifdef ECL_THREADS
+# define AO_REQUIRE_CAS
 # ifdef ECL_LIBATOMIC_OPS_H
 #  include <ecl/atomic_ops.h>
 # else