From 7e25e8a2b9df590eb37fe83b3e0555bcfde5523b Mon Sep 17 00:00:00 2001 From: martynas <> Date: Wed, 16 Jul 2008 15:01:19 +0000 Subject: [PATCH] infnan always returned wrong values, because compiler assumed it returns integer value, so add missing prototype ok millert@ --- src/include/math.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/math.h b/src/include/math.h index 67b67033..7c039b09 100644 --- a/src/include/math.h +++ b/src/include/math.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math.h,v 1.15 2008/06/11 21:16:43 martynas Exp $ */ +/* $OpenBSD: math.h,v 1.16 2008/07/16 15:01:19 martynas Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -304,6 +304,10 @@ extern float lgammaf_r(float, int *); #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 500 */ #endif /* __BSD_VISIBLE || __XPG_VISIBLE */ + +#if __BSD_VISIBLE && defined(__vax__) +extern double infnan(int); +#endif /* __BSD_VISIBLE && defined(__vax__) */ __END_DECLS #endif /* _MATH_H_ */