summaryrefslogtreecommitdiff
path: root/sys/modules/lua/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/lua/string.h')
-rw-r--r--sys/modules/lua/string.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/modules/lua/string.h b/sys/modules/lua/string.h
new file mode 100644
index 00000000000..f54ade99316
--- /dev/null
+++ b/sys/modules/lua/string.h
@@ -0,0 +1,21 @@
+/* $NetBSD */
+
+/*
+ * This file is a placeholder only, to allow Lua to be compiled from
+ * unchanged sources.
+ */
+
+#include <sys/param.h>
+
+#ifndef _LUA_INCLUDE_STRING_
+#define _LUA_INCLUDE_STRING_
+
+#define strcoll strcmp
+
+char *strncat(char *dst, const char *src, size_t n);
+size_t strspn(const char *s, const char *charset);
+size_t strcspn(const char *s, const char *charset);
+char *strpbrk(const char *s, const char *charset);
+
+#endif
+