Fix warnings in C programs generated by configure; fixes failures with -Werror
authorIan Lynagh <igloo@earth.li>
Mon, 15 Jun 2009 20:16:34 +0000 (20:16 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 15 Jun 2009 20:16:34 +0000 (20:16 +0000)
aclocal.m4

index 49ad919..211ba92 100644 (file)
@@ -135,9 +135,11 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
 # include <sys/resource.h>
 #endif
 
+#include <stdlib.h>
+
 typedef $1 testing;
 
-main() {
+int main(void) {
   FILE *f=fopen("conftestval", "w");
   if (!f) exit(1);
   if (((testing)((int)((testing)1.4))) == ((testing)1.4)) {