Backport #8228 » 20130410-ruby193-solaris-atomic.patch
configure.in (working copy) | ||
---|---|---|
syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
|
||
sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
|
||
ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
|
||
net/socket.h sys/socket.h process.h)
|
||
net/socket.h sys/socket.h process.h atomic.h)
|
||
AC_TYPE_SIZE_T
|
||
RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>])
|
ruby_atomic.h (working copy) | ||
---|---|---|
# define ATOMIC_SIZE_EXCHANGE(var, val) InterlockedExchange((LONG *)&(var), (val))
|
||
# endif
|
||
#elif defined(__sun)
|
||
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
|
||
#include <atomic.h>
|
||
typedef unsigned int rb_atomic_t;
|
||