Commit 9ca675f3 authored by Sam Hocevar's avatar Sam Hocevar
Browse files

* src/misc/modules_plugin.h.in: More meaningful errors from the OS X dynamic

    loader.
parent 580edf4d
......@@ -2,7 +2,7 @@
* modules_plugin.h : Plugin management functions used by the core application.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules_plugin.h.in,v 1.12 2003/10/04 12:30:53 massiot Exp $
* $Id: modules_plugin.h.in,v 1.13 2003/10/04 15:04:49 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -50,11 +50,7 @@ static int module_load( const MYCHAR * psz_filename, module_handle_t * handle )
if( !*handle )
{
NSLinkEditErrors errors;
const char *psz_file, *psz_err;
int i_errnum;
NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err );
return -1; /* err */
return -1;
}
/* Destroy our image, we won't need it */
......@@ -218,7 +214,11 @@ static void * module_getsymbol( module_handle_t handle,
static const char * module_error( char *psz_buffer )
{
#if defined(HAVE_DL_DYLD)
return "failed";
NSLinkEditErrors errors;
const char *psz_file, *psz_err;
int i_errnum;
NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err );
return psz_err;
#elif defined(HAVE_IMAGE_H)
return "failed";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment