diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-09-18 06:43:19 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-09-18 06:59:53 +0000 |
commit | c658a2be7355ceee72736cc17754022dc7abfa9f (patch) | |
tree | 7c0e91b92270eca19ba1344f1e666e2c4c98cb96 /ext/raindrops/linux_inet_diag.c | |
parent | 7a0bb1afb81da3c83f2cc59403826e1f855d3f0d (diff) | |
download | raindrops-c658a2be7355ceee72736cc17754022dc7abfa9f.tar.gz |
This allows non-GCC 4.x users to experience Raindrops.
Diffstat (limited to 'ext/raindrops/linux_inet_diag.c')
-rw-r--r-- | ext/raindrops/linux_inet_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c index 954a73c..2c2978b 100644 --- a/ext/raindrops/linux_inet_diag.c +++ b/ext/raindrops/linux_inet_diag.c @@ -144,7 +144,7 @@ static VALUE diag(void *ptr) } req; struct msghdr msg; const char *err = NULL; - unsigned seq = __sync_add_and_fetch(&g_seq, 1); + unsigned seq = ++g_seq; /* not atomic, rely on GVL for now */ int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_INET_DIAG); if (fd < 0) |