This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
HP-UX dynaloading uses shl_t, not void ptr.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 27 Nov 2014 15:32:13 +0000 (10:32 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 27 Nov 2014 16:21:28 +0000 (11:21 -0500)
ext/DynaLoader/dl_hpux.xs

index 9003b9a..70bedb8 100644 (file)
@@ -108,7 +108,7 @@ dl_unload_file(libref)
     void *     libref
   CODE:
     DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dl_unload_file(%lx):\n", PTR2ul(libref)));
-    RETVAL = (shl_unload(libref) == 0 ? 1 : 0);
+    RETVAL = (shl_unload((shl_t)libref) == 0 ? 1 : 0);
     if (!RETVAL)
        SaveError(aTHX_ "%s", Strerror(errno));
     DLDEBUG(2,PerlIO_printf(Perl_debug_log, " retval = %d\n", RETVAL));