From 43674ab48e01c06b5424782a8f0d8933ba944c23 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Wed, 16 Jun 1999 04:55:36 +0000 Subject: [PATCH] Make it work with gnu libc 2.1. On glibc 2.1, the Dl_info api defined in is only exposed __USE_GNU is defined. I suppose its some kind of standards adherence thing. git-svn-id: svn://10.0.0.236/trunk@35664 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsTraceRefcnt.cpp | 11 +++++++++++ mozilla/xpcom/base/nsTraceRefcntImpl.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) 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)