From 8538b0b605e849b223f4a8c367b74be3bd15111a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 20 Feb 2004 11:17:32 +0000 Subject: [PATCH] Portability fix: don't declare library function, include appropriate header. --- src/lib/update/sail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/update/sail.c b/src/lib/update/sail.c index 0e6efe72..bd0613cc 100644 --- a/src/lib/update/sail.c +++ b/src/lib/update/sail.c @@ -48,6 +48,7 @@ #include "update.h" #include "subs.h" #include "common.h" +#include #include static void fltp_to_list(struct fltheadstr *, struct emp_qelem *); @@ -55,7 +56,7 @@ static void fltp_to_list(struct fltheadstr *, struct emp_qelem *); static void cost_ship(struct shpstr *sp, struct fltelemstr *ep, struct fltheadstr *fp) { - double mobcost, ceil(double); + double mobcost; int howfar; mobcost = 0.0;