summaryrefslogtreecommitdiff
path: root/include/math.h
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-07-16 15:01:20 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-07-16 15:01:20 +0000
commit2b537341f180dbb28b96bf1d54c137a77ecff5cb (patch)
tree80cb5c389b6f01fd6d3aa96a69190408e84227a4 /include/math.h
parent22db15b982a7dabf159d473b641e55af4b5b484a (diff)
infnan always returned wrong values, because compiler assumed it
returns integer value, so add missing prototype ok millert@
Diffstat (limited to 'include/math.h')
-rw-r--r--include/math.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/math.h b/include/math.h
index 67b670334c2..7c039b09b15 100644
--- a/include/math.h
+++ b/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_ */