diff --git a/configure.ac b/configure.ac index 67d316b761..f15e07b70b 100644 --- a/configure.ac +++ b/configure.ac @@ -226,7 +226,7 @@ # check if our target supports thread local storage AC_MSG_CHECKING(for thread local storage __thread support) AC_TRY_COMPILE([#include ], - [ void somefunc (void) { static __thread int i; i = 1; i++; } ], + [ static __thread int i; i = 1; i++; ], [AC_DEFINE([TLS], [1], [Thread local storage]) AC_MSG_RESULT([yes]) ], [AC_MSG_RESULT([no])])