summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 13:30:18 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 13:30:18 +0000
commita1e0a66ec7d3bb1c25643354205d112345c2f83a (patch)
treec373c16b99ae01a125992a68f962a6b67cb364f1 /lib/libc
parent8e9744b92e3de6cc0965f541aafabcf6a7e98f3b (diff)
Only two of the *rand48.c files need <math.h>, so just #include it in them
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/drand48.c3
-rw-r--r--lib/libc/stdlib/erand48.c3
-rw-r--r--lib/libc/stdlib/rand48.h3
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdlib/drand48.c b/lib/libc/stdlib/drand48.c
index 2be23d4c7a4..429e4cf3788 100644
--- a/lib/libc/stdlib/drand48.c
+++ b/lib/libc/stdlib/drand48.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drand48.c,v 1.6 2015/08/27 04:33:31 guenther Exp $ */
+/* $OpenBSD: drand48.c,v 1.7 2015/09/14 13:30:17 guenther Exp $ */
/*
* Copyright (c) 1993 Martin Birgmeier
* All rights reserved.
@@ -12,6 +12,7 @@
* to anyone/anything when using this software.
*/
+#include <math.h>
#include "rand48.h"
double
diff --git a/lib/libc/stdlib/erand48.c b/lib/libc/stdlib/erand48.c
index 20d6a2dd690..db0529f4a0f 100644
--- a/lib/libc/stdlib/erand48.c
+++ b/lib/libc/stdlib/erand48.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: erand48.c,v 1.4 2015/09/13 08:31:47 guenther Exp $ */
+/* $OpenBSD: erand48.c,v 1.5 2015/09/14 13:30:17 guenther Exp $ */
/*
* Copyright (c) 1993 Martin Birgmeier
* All rights reserved.
@@ -12,6 +12,7 @@
* to anyone/anything when using this software.
*/
+#include <math.h>
#include "rand48.h"
double
diff --git a/lib/libc/stdlib/rand48.h b/lib/libc/stdlib/rand48.h
index fff289927fc..7a719beba66 100644
--- a/lib/libc/stdlib/rand48.h
+++ b/lib/libc/stdlib/rand48.h
@@ -10,13 +10,12 @@
* of any kind. I shall in no event be liable for anything that happens
* to anyone/anything when using this software.
*
- * $OpenBSD: rand48.h,v 1.5 2015/08/27 04:33:31 guenther Exp $
+ * $OpenBSD: rand48.h,v 1.6 2015/09/14 13:30:17 guenther Exp $
*/
#ifndef _RAND48_H_
#define _RAND48_H_
-#include <math.h>
#include <stdlib.h>
__BEGIN_HIDDEN_DECLS