AC_TRY_COMPILE fills in a main function template.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
diff --git a/testcases/realtime/configure.in b/testcases/realtime/configure.in
index 354954a..858eef9 100644
--- a/testcases/realtime/configure.in
+++ b/testcases/realtime/configure.in
@@ -25,10 +25,10 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-#include <stdlib.h>],[int main(void) {
+#include <stdlib.h>],[
char *c;
return __sync_add_and_fetch(c, 1);
-}],[has___sync_add_and_fetch=yes])
+],[has___sync_add_and_fetch=yes])
if test "x$has___sync_add_and_fetch" = xyes; then
AC_DEFINE(HAVE___SYNC_ADD_AND_FETCH,1,[Define to 1 if you have the __sync_add_and_fetch gcc builtin function])
AC_MSG_RESULT(yes)