summaryrefslogtreecommitdiff
path: root/ext/DynaLoader
diff options
context:
space:
mode:
Diffstat (limited to 'ext/DynaLoader')
-rw-r--r--ext/DynaLoader/dl_mac.xs1
-rw-r--r--ext/DynaLoader/dl_next.xs2
-rw-r--r--ext/DynaLoader/dl_vms.xs3
3 files changed, 5 insertions, 1 deletions
diff --git a/ext/DynaLoader/dl_mac.xs b/ext/DynaLoader/dl_mac.xs
index 37422877aa..dd1ddfa997 100644
--- a/ext/DynaLoader/dl_mac.xs
+++ b/ext/DynaLoader/dl_mac.xs
@@ -36,6 +36,7 @@ typedef struct {
static void terminate(void)
{
+ dTHX;
dMY_CXT;
int size = GetHandleSize((Handle) dl_connections) / sizeof(ConnectionID);
HLock((Handle) dl_connections);
diff --git a/ext/DynaLoader/dl_next.xs b/ext/DynaLoader/dl_next.xs
index 405082664d..8fa84404ea 100644
--- a/ext/DynaLoader/dl_next.xs
+++ b/ext/DynaLoader/dl_next.xs
@@ -156,6 +156,7 @@ static void TransferError(NXStream *s)
{
char *buffer;
int len, maxlen;
+ dTHX;
dMY_CXT;
if ( dl_last_error ) {
@@ -181,6 +182,7 @@ static char *dlopen(char *path, int mode /* mode is ignored */)
char *result;
char **p;
STRLEN n_a;
+ dTHX;
dMY_CXT;
/* Do not load what is already loaded into this process */
diff --git a/ext/DynaLoader/dl_vms.xs b/ext/DynaLoader/dl_vms.xs
index 2089826bc1..03ddcb2441 100644
--- a/ext/DynaLoader/dl_vms.xs
+++ b/ext/DynaLoader/dl_vms.xs
@@ -101,6 +101,7 @@ copy_errmsg(msg,unused)
struct dsc$descriptor_s * msg;
vmssts unused;
{
+ dTHX;
dMY_CXT;
if (*(msg->dsc$a_pointer) == '%') { /* first line */
if (dl_last_error)
@@ -251,6 +252,7 @@ dl_load_file(filespec, flags)
int flags
PREINIT:
dTHX;
+ dMY_CXT;
char vmsspec[NAM$C_MAXRSS];
SV *reqSV, **reqSVhndl;
STRLEN deflen;
@@ -265,7 +267,6 @@ dl_load_file(filespec, flags)
struct libref *dlptr;
vmssts sts, failed = 0;
void (*entry)();
- dMY_CXT;
CODE:
DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dl_load_file(%s,%x):\n", filespec,flags));