summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/win32/runperl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/win32/runperl.c')
-rw-r--r--gnu/usr.bin/perl/win32/runperl.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/win32/runperl.c b/gnu/usr.bin/perl/win32/runperl.c
new file mode 100644
index 00000000000..07e2bd6f835
--- /dev/null
+++ b/gnu/usr.bin/perl/win32/runperl.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <win32io.h>
+
+#ifndef _DLL
+extern WIN32_IOSUBSYSTEM win32stdio;
+#endif
+
+extern int RunPerl(int argc, char **argv, char **env, void *iosubsystem);
+
+int
+main(int argc, char **argv, char **env)
+{
+#ifdef _DLL
+ return (RunPerl(argc, argv, env, NULL));
+#else
+ return (RunPerl(argc, argv, env, &win32stdio));
+#endif
+}