]> git.saurik.com Git - bison.git/commitdiff
tests: portability issues.
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 17 Jun 2012 09:19:51 +0000 (11:19 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 17 Jun 2012 09:20:21 +0000 (11:20 +0200)
* tests/calc.at (AT_CALC_MAIN): Missing include reported by Hydra.

tests/calc.at

index e54a367006d8c4e84da1ad34b95c2e5f6edd0c86..77f70cd3b4ebe2b33636a7e14ae54d794be69a5f 100644 (file)
@@ -45,7 +45,8 @@ m4_define([_AT_DATA_CALC_Y],
        [m4_fatal([$0: Invalid arguments: $@])])dnl
 
 m4_pushdef([AT_CALC_MAIN],
-[#if HAVE_UNISTD_H
+[#include <stdlib.h> /* abort */
+#if HAVE_UNISTD_H
 # include <unistd.h>
 #else
 # undef alarm
@@ -280,7 +281,6 @@ extern int global_count;]AT_SKEL_CC_IF([[
 %code
 {
 #include <assert.h>
-#include <stdlib.h>
 #include <string.h>
 #define USE(Var)