summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-28 08:12:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-28 08:12:01 +0000
commit51b6bfb0119356c689fbacf4c399e3e1816dec47 (patch)
tree286ad90fa3120cdcef2b52d6a55df8eb48d5aeaf /missing
parente53a60147ba68ab98fbe7a078b43311274d59f00 (diff)
* missing/*.c: include missing.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/cbrt.c1
-rw-r--r--missing/close.c1
-rw-r--r--missing/crypt.c1
-rw-r--r--missing/erf.c1
-rw-r--r--missing/finite.c2
-rw-r--r--missing/hypot.c1
-rw-r--r--missing/isnan.c2
-rw-r--r--missing/langinfo.c1
-rw-r--r--missing/lgamma_r.c1
-rw-r--r--missing/memcmp.c1
-rw-r--r--missing/memmove.c1
-rw-r--r--missing/strchr.c2
-rw-r--r--missing/strerror.c2
-rw-r--r--missing/strlcat.c1
-rw-r--r--missing/strlcpy.c1
-rw-r--r--missing/strstr.c2
-rw-r--r--missing/strtol.c1
17 files changed, 22 insertions, 0 deletions
diff --git a/missing/cbrt.c b/missing/cbrt.c
index 54db2703a0..1bcbc63392 100644
--- a/missing/cbrt.c
+++ b/missing/cbrt.c
@@ -1,3 +1,4 @@
+#include "ruby/missing.h"
#include <math.h>
double cbrt(double x)
diff --git a/missing/close.c b/missing/close.c
index d87f9e3164..e836bf4906 100644
--- a/missing/close.c
+++ b/missing/close.c
@@ -1,4 +1,5 @@
/* Ignore ECONNRESET of FreeBSD */
+#include "ruby/missing.h"
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/missing/crypt.c b/missing/crypt.c
index d5a9281f77..f3d2084844 100644
--- a/missing/crypt.c
+++ b/missing/crypt.c
@@ -34,6 +34,7 @@
static char sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/missing/erf.c b/missing/erf.c
index fe65b9a479..d72c4eaf4e 100644
--- a/missing/erf.c
+++ b/missing/erf.c
@@ -3,6 +3,7 @@
reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
(New Algorithm handbook in C language) (Gijyutsu hyouron
sha, Tokyo, 1991) p.227 [in Japanese] */
+#include "ruby/missing.h"
#include <stdio.h>
#include <math.h>
diff --git a/missing/finite.c b/missing/finite.c
index 8d0b7af262..ab7686317b 100644
--- a/missing/finite.c
+++ b/missing/finite.c
@@ -1,5 +1,7 @@
/* public domain rewrite of finite(3) */
+#include "ruby/missing.h"
+
int
finite(double n)
{
diff --git a/missing/hypot.c b/missing/hypot.c
index 5a663553cf..765581bacb 100644
--- a/missing/hypot.c
+++ b/missing/hypot.c
@@ -1,5 +1,6 @@
/* public domain rewrite of hypot */
+#include "ruby/missing.h"
#include <math.h>
double hypot(double x, double y)
diff --git a/missing/isnan.c b/missing/isnan.c
index a8733978ad..5846947f50 100644
--- a/missing/isnan.c
+++ b/missing/isnan.c
@@ -1,5 +1,7 @@
/* public domain rewrite of isnan(3) */
+#include "ruby/missing.h"
+
static int double_ne(double n1, double n2);
int
diff --git a/missing/langinfo.c b/missing/langinfo.c
index 6373afd0f5..04633c1b90 100644
--- a/missing/langinfo.c
+++ b/missing/langinfo.c
@@ -32,6 +32,7 @@
* http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c
*/
+#include "ruby/missing.h"
#include <stdlib.h>
#include <string.h>
#if defined _WIN32 || defined __CYGWIN__
diff --git a/missing/lgamma_r.c b/missing/lgamma_r.c
index ba8535b18a..64ca829f10 100644
--- a/missing/lgamma_r.c
+++ b/missing/lgamma_r.c
@@ -8,6 +8,7 @@ reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
http://oku.edu.mie-u.ac.jp/~okumura/algo/
*/
+#include "ruby/missing.h"
/***********************************************************
gamma.c -- Gamma function
***********************************************************/
diff --git a/missing/memcmp.c b/missing/memcmp.c
index 5b3ad3817a..a81eec4244 100644
--- a/missing/memcmp.c
+++ b/missing/memcmp.c
@@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */
+#include "ruby/missing.h"
#include <stddef.h>
int
diff --git a/missing/memmove.c b/missing/memmove.c
index 19c5f18847..e8e17e87e7 100644
--- a/missing/memmove.c
+++ b/missing/memmove.c
@@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */
+#include "ruby/missing.h"
#include <stddef.h>
void *
diff --git a/missing/strchr.c b/missing/strchr.c
index bebd7ba578..719a1be8be 100644
--- a/missing/strchr.c
+++ b/missing/strchr.c
@@ -1,5 +1,7 @@
/* public domain rewrite of strchr(3) and strrchr(3) */
+#include "ruby/missing.h"
+
char *
strchr(const char *s, int c)
{
diff --git a/missing/strerror.c b/missing/strerror.c
index 023935a1ff..907b5aee0d 100644
--- a/missing/strerror.c
+++ b/missing/strerror.c
@@ -1,5 +1,7 @@
/* public domain rewrite of strerror(3) */
+#include "ruby/missing.h"
+
extern int sys_nerr;
extern char *sys_errlist[];
diff --git a/missing/strlcat.c b/missing/strlcat.c
index b309648155..4e2d7cc85a 100644
--- a/missing/strlcat.c
+++ b/missing/strlcat.c
@@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#include <sys/types.h>
#include <string.h>
diff --git a/missing/strlcpy.c b/missing/strlcpy.c
index 5f586964b7..2ebc38f98f 100644
--- a/missing/strlcpy.c
+++ b/missing/strlcpy.c
@@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#include <sys/types.h>
#include <string.h>
diff --git a/missing/strstr.c b/missing/strstr.c
index 2e9c282fb1..cd2a4a4d5e 100644
--- a/missing/strstr.c
+++ b/missing/strstr.c
@@ -1,5 +1,7 @@
/* public domain rewrite of strstr(3) */
+#include "ruby/missing.h"
+
char *
strstr(const char *haystack, const char *needle)
{
diff --git a/missing/strtol.c b/missing/strtol.c
index da6636f316..87bd73124c 100644
--- a/missing/strtol.c
+++ b/missing/strtol.c
@@ -1,5 +1,6 @@
/* public domain rewrite of strtol(3) */
+#include "ruby/missing.h"
#include <ctype.h>
long