diff --git a/mozilla/xpcom/base/nsTraceRefcnt.cpp b/mozilla/xpcom/base/nsTraceRefcnt.cpp index 2794ec42424..54ba8a86274 100644 --- a/mozilla/xpcom/base/nsTraceRefcnt.cpp +++ b/mozilla/xpcom/base/nsTraceRefcnt.cpp @@ -24,7 +24,18 @@ #include #elif defined(linux) #include + +// +// On glibc 2.1, the Dl_info api defined in is only exposed +// if __USE_GNU is defined. I suppose its some kind of standards +// adherence thing. +// +#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 1) +#define __USE_GNU +#endif + #include + #endif #if defined(NS_MT_SUPPORTED) diff --git a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp index 2794ec42424..54ba8a86274 100644 --- a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp +++ b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp @@ -24,7 +24,18 @@ #include #elif defined(linux) #include + +// +// On glibc 2.1, the Dl_info api defined in is only exposed +// if __USE_GNU is defined. I suppose its some kind of standards +// adherence thing. +// +#if defined(__GLIBC__) && (__GLIBC_MINOR__ >= 1) +#define __USE_GNU +#endif + #include + #endif #if defined(NS_MT_SUPPORTED)