Project

General

Profile

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

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

View differences:

ruby_atomic.h (working copy)
64 64
#  define ATOMIC_SIZE_EXCHANGE(var, val) InterlockedExchange((LONG *)&(var), (val))
65 65
# endif
66 66

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

  
configure.in (working copy)
949 949
		 syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
950 950
		 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
951 951
		 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
952
		 net/socket.h sys/socket.h process.h sys/prctl.h)
952
		 net/socket.h sys/socket.h process.h sys/prctl.h atomic.h)
953 953

  
954 954
dnl check for large file stuff
955 955
mv confdefs.h confdefs1.h