From 19bb74b35212a6194aa16e9c33d744c8b93d673b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 18 Dec 2001 17:02:02 +0000 Subject: [PATCH] Added IRIX compatibility code for dladdr Original commit message from CVS: Added IRIX compatibility code for dladdr --- gst/gstinfo.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index dbedb0e778..cecbd40c72 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -25,6 +25,28 @@ #include "gstelement.h" #include "gstpad.h" +#if defined __sgi__ +#include +typedef struct DL_INFO { + const char * dli_fname; + void * dli_fbase; + const char * dli_sname; + void * dli_saddr; + int dli_version; + int dli_reserved1; + long dli_reserved[4]; +} Dl_info; +#define _RLD_DLADDR 14 +int dladdr(void *address, Dl_info *dl); + +int dladdr(void *address, Dl_info *dl) +{ + void *v; + v = _rld_new_interface(_RLD_DLADDR,address,dl); + return (int)v; +} +#endif + extern gchar *_gst_progname;