$OpenBSD: patch-configure_ac,v 1.8 2015/01/06 22:51:55 sthen Exp $
--- configure.ac.orig	Sun Dec 21 05:15:31 2014
+++ configure.ac	Tue Jan  6 22:32:47 2015
@@ -426,7 +426,7 @@ dnl Check for atomic operations support in the compile
 dnl
 AC_MSG_CHECKING([for GNU atomic operations support])
 AC_RUN_IFELSE([AC_LANG_PROGRAM([[
-    int n = 0;
+    long long n = 0;
 ]],[[
     __sync_add_and_fetch(&n, 10); // n becomes 10
     __sync_fetch_and_add(&n, 20); // n becomes 30
