Fixes for #12627.
Jarkko Hietaniemi [Thu, 25 Oct 2001 01:53:03 +0000 (01:53 +0000)]
p4raw-id: //depot/perl@12634

ext/DynaLoader/dl_aix.xs
ext/DynaLoader/dl_hpux.xs

index c3f2c11..865cba1 100644 (file)
@@ -26,6 +26,8 @@
 #include "XSUB.h"
 #include <dlfcn.h>
 
+#include "dlutils.c"   /* SaveError() etc      */
+
 #else
 
 /*
index 8fd6348..a7119ba 100644 (file)
@@ -58,8 +58,8 @@ dl_load_file(filename, flags=0)
     PREINIT:
     shl_t obj = NULL;
     int        i, max, bind_type;
-    CODE:
     dMY_CXT;
+    CODE:
     DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dl_load_file(%s,%x):\n", filename,flags));
     if (flags & 0x01)
        Perl_warn(aTHX_ "Can't make loaded symbols global on this platform while loading %s",filename);