diff options
author | guenther <> | 2015-09-14 13:30:17 +0000 |
---|---|---|
committer | guenther <> | 2015-09-14 13:30:17 +0000 |
commit | 201f9cf02bc9da2919ed87e7e65f71fc6b5a5a9f (patch) | |
tree | b1822e08a3a5751e8965e6a358211e77dd7af552 | |
parent | bdd7818bb199b2986717fe3be3ecf7d3552f0a87 (diff) | |
download | openbsd-201f9cf02bc9da2919ed87e7e65f71fc6b5a5a9f.tar.gz openbsd-201f9cf02bc9da2919ed87e7e65f71fc6b5a5a9f.tar.bz2 openbsd-201f9cf02bc9da2919ed87e7e65f71fc6b5a5a9f.zip |
Only two of the *rand48.c files need <math.h>, so just #include it in them
-rw-r--r-- | src/lib/libc/stdlib/drand48.c | 3 | ||||
-rw-r--r-- | src/lib/libc/stdlib/erand48.c | 3 | ||||
-rw-r--r-- | src/lib/libc/stdlib/rand48.h | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/drand48.c b/src/lib/libc/stdlib/drand48.c index 2be23d4c7a..429e4cf378 100644 --- a/src/lib/libc/stdlib/drand48.c +++ b/src/lib/libc/stdlib/drand48.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: drand48.c,v 1.6 2015/08/27 04:33:31 guenther Exp $ */ | 1 | /* $OpenBSD: drand48.c,v 1.7 2015/09/14 13:30:17 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1993 Martin Birgmeier | 3 | * Copyright (c) 1993 Martin Birgmeier |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -12,6 +12,7 @@ | |||
12 | * to anyone/anything when using this software. | 12 | * to anyone/anything when using this software. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <math.h> | ||
15 | #include "rand48.h" | 16 | #include "rand48.h" |
16 | 17 | ||
17 | double | 18 | double |
diff --git a/src/lib/libc/stdlib/erand48.c b/src/lib/libc/stdlib/erand48.c index 20d6a2dd69..db0529f4a0 100644 --- a/src/lib/libc/stdlib/erand48.c +++ b/src/lib/libc/stdlib/erand48.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: erand48.c,v 1.4 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: erand48.c,v 1.5 2015/09/14 13:30:17 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1993 Martin Birgmeier | 3 | * Copyright (c) 1993 Martin Birgmeier |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -12,6 +12,7 @@ | |||
12 | * to anyone/anything when using this software. | 12 | * to anyone/anything when using this software. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <math.h> | ||
15 | #include "rand48.h" | 16 | #include "rand48.h" |
16 | 17 | ||
17 | double | 18 | double |
diff --git a/src/lib/libc/stdlib/rand48.h b/src/lib/libc/stdlib/rand48.h index fff289927f..7a719beba6 100644 --- a/src/lib/libc/stdlib/rand48.h +++ b/src/lib/libc/stdlib/rand48.h | |||
@@ -10,13 +10,12 @@ | |||
10 | * of any kind. I shall in no event be liable for anything that happens | 10 | * of any kind. I shall in no event be liable for anything that happens |
11 | * to anyone/anything when using this software. | 11 | * to anyone/anything when using this software. |
12 | * | 12 | * |
13 | * $OpenBSD: rand48.h,v 1.5 2015/08/27 04:33:31 guenther Exp $ | 13 | * $OpenBSD: rand48.h,v 1.6 2015/09/14 13:30:17 guenther Exp $ |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef _RAND48_H_ | 16 | #ifndef _RAND48_H_ |
17 | #define _RAND48_H_ | 17 | #define _RAND48_H_ |
18 | 18 | ||
19 | #include <math.h> | ||
20 | #include <stdlib.h> | 19 | #include <stdlib.h> |
21 | 20 | ||
22 | __BEGIN_HIDDEN_DECLS | 21 | __BEGIN_HIDDEN_DECLS |