summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 06:05:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 06:05:18 +0000
commit0066a382d404421d82a9d7d343b6432eee740fd5 (patch)
tree64de8bc9e7fba82e1f18e0eb8c03826e50cd72f9 /lib/libc
parent38104b1de227998a9cf0ade469d223d8bd348d89 (diff)
add proto for amd64 case; unify otherwise
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/amd64/gen/ldexp.c6
-rw-r--r--lib/libc/arch/i386/gen/ldexp.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/arch/amd64/gen/ldexp.c b/lib/libc/arch/amd64/gen/ldexp.c
index 47983c1adfd..9769dd67cc1 100644
--- a/lib/libc/arch/amd64/gen/ldexp.c
+++ b/lib/libc/arch/amd64/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.2 2005/08/07 16:40:13 espie Exp $ */
+/* $OpenBSD: ldexp.c,v 1.3 2013/11/12 06:05:17 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -32,12 +32,14 @@
* SUCH DAMAGE.
*/
+#include <math.h>
+
/*
* ldexp(value, exp): return value * (2 ** exp).
*/
double
-ldexp (double value, int exp)
+ldexp(double value, int exp)
{
double temp;
#if __GNUC__ >= 2
diff --git a/lib/libc/arch/i386/gen/ldexp.c b/lib/libc/arch/i386/gen/ldexp.c
index d6f063104bc..3144cc3cf20 100644
--- a/lib/libc/arch/i386/gen/ldexp.c
+++ b/lib/libc/arch/i386/gen/ldexp.c
@@ -37,7 +37,7 @@
*/
double
-ldexp (double value, int exp)
+ldexp(double value, int exp)
{
double temp;
#if __GNUC__ >= 2