summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-13 15:21:48 +0000
committerderaadt <deraadt@openbsd.org>2013-11-13 15:21:48 +0000
commitf94f3caff151fecaf460d81bf9929ad6561fe24f (patch)
treeac82f02ac7d61e0894c0e48ab5d7b99f0dd92af3
parentrepair buffer resizing "undershoot", and some minor issues with (diff)
downloadwireguard-openbsd-f94f3caff151fecaf460d81bf9929ad6561fe24f.tar.xz
wireguard-openbsd-f94f3caff151fecaf460d81bf9929ad6561fe24f.zip
bring in math.h to provide prototypes
-rw-r--r--lib/libc/arch/arm/gen/fabs.c3
-rw-r--r--lib/libc/arch/hppa/gen/fabs.c3
-rw-r--r--lib/libc/arch/hppa64/gen/fabs.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/arch/arm/gen/fabs.c b/lib/libc/arch/arm/gen/fabs.c
index 4e285d7e52b..be3b69ed268 100644
--- a/lib/libc/arch/arm/gen/fabs.c
+++ b/lib/libc/arch/arm/gen/fabs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.c,v 1.9 2013/03/28 18:09:38 martynas Exp $ */
+/* $OpenBSD: fabs.c,v 1.10 2013/11/13 15:21:48 deraadt Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -17,6 +17,7 @@
#include <sys/types.h>
#include <machine/ieee.h>
+#include <math.h>
/*
* fabs(d) returns the absolute value of d.
diff --git a/lib/libc/arch/hppa/gen/fabs.c b/lib/libc/arch/hppa/gen/fabs.c
index c012f8376fa..9b9b80b5867 100644
--- a/lib/libc/arch/hppa/gen/fabs.c
+++ b/lib/libc/arch/hppa/gen/fabs.c
@@ -1,10 +1,11 @@
-/* $OpenBSD: fabs.c,v 1.9 2013/03/28 18:09:38 martynas Exp $ */
+/* $OpenBSD: fabs.c,v 1.10 2013/11/13 15:21:51 deraadt Exp $ */
/*
* Written by Miodrag Vallat. Public domain
*/
#include <sys/types.h>
+#include <math.h>
double
fabs(double val)
diff --git a/lib/libc/arch/hppa64/gen/fabs.c b/lib/libc/arch/hppa64/gen/fabs.c
index aa000c18510..ebde6369046 100644
--- a/lib/libc/arch/hppa64/gen/fabs.c
+++ b/lib/libc/arch/hppa64/gen/fabs.c
@@ -1,10 +1,11 @@
-/* $OpenBSD: fabs.c,v 1.6 2013/03/28 18:09:38 martynas Exp $ */
+/* $OpenBSD: fabs.c,v 1.7 2013/11/13 15:21:51 deraadt Exp $ */
/*
* Written by Miodrag Vallat. Public domain
*/
#include <sys/types.h>
+#include <math.h>
double
fabs(double val)