summaryrefslogtreecommitdiff
path: root/missing/strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/strchr.c')
-rw-r--r--missing/strchr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/missing/strchr.c b/missing/strchr.c
index bebd7ba578..465f07b61e 100644
--- a/missing/strchr.c
+++ b/missing/strchr.c
@@ -1,5 +1,9 @@
/* public domain rewrite of strchr(3) and strrchr(3) */
+#include "ruby/missing.h"
+
+size_t strlen(const char*);
+
char *
strchr(const char *s, int c)
{