summaryrefslogtreecommitdiff
path: root/os2/dl_os2.c
diff options
context:
space:
mode:
Diffstat (limited to 'os2/dl_os2.c')
-rw-r--r--os2/dl_os2.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/os2/dl_os2.c b/os2/dl_os2.c
index 5c8b6e6871..b698451b08 100644
--- a/os2/dl_os2.c
+++ b/os2/dl_os2.c
@@ -8,13 +8,23 @@
static ULONG retcode;
static char fail[300];
+#ifdef PERL_CORE
+
+#include "EXTERN.h"
+#include "perl.h"
+
+#else
+
char *os2error(int rc);
+#endif
+
void *
dlopen(const char *path, int mode)
{
HMODULE handle;
- char tmp[260], *beg, *dot;
+ char tmp[260];
+ const char *beg, *dot;
ULONG rc;
fail[0] = 0;