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