bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests: portability issues


From: Akim Demaille
Subject: tests: portability issues
Date: Sun, 17 Jun 2012 11:51:36 +0200

Installed in maint.

From 363bf73276e2d60ddbe76ededc24d6d9b467bac8 Mon Sep 17 00:00:00 2001
From: Akim Demaille <address@hidden>
Date: Sun, 17 Jun 2012 11:19:51 +0200
Subject: [PATCH] tests: portability issues.

* tests/calc.at (AT_CALC_MAIN): Missing include reported by Hydra.
---
 tests/calc.at |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/calc.at b/tests/calc.at
index e54a367..77f70cd 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -45,7 +45,8 @@ m4_define([_AT_DATA_CALC_Y],
        [m4_fatal([$0: Invalid arguments: address@hidden)])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)
 
-- 
1.7.10.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]