Project

General

Profile

Backport #8228 ยป 20130410-ruby193-solaris-atomic.patch

ngoto (Naohisa Goto), 04/10/2013 06:15 PM

View differences:

configure.in (working copy)
1169 1169
		 syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
1170 1170
		 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
1171 1171
		 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
1172
		 net/socket.h sys/socket.h process.h)
1172
		 net/socket.h sys/socket.h process.h atomic.h)
1173 1173

  
1174 1174
AC_TYPE_SIZE_T
1175 1175
RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>])
ruby_atomic.h (working copy)
63 63
#  define ATOMIC_SIZE_EXCHANGE(var, val) InterlockedExchange((LONG *)&(var), (val))
64 64
# endif
65 65

  
66
#elif defined(__sun)
66
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
67 67
#include <atomic.h>
68 68
typedef unsigned int rb_atomic_t;
69 69