diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-13 15:21:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-13 15:21:52 +0000 |
commit | 85501fa28b8c9204ceedb10cd43ebfc1d1596cfe (patch) | |
tree | efb222878ee99b86e0d9c77f1c234fa3cdc09980 /lib | |
parent | 82eb58fb1ac139db08838d1939b017e01ad4c4ed (diff) |
bring in math.h to provide prototypes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arch/arm/gen/fabs.c | 3 | ||||
-rw-r--r-- | lib/libc/arch/hppa/gen/fabs.c | 3 | ||||
-rw-r--r-- | lib/libc/arch/hppa64/gen/fabs.c | 3 |
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) |