Make it work with gnu libc 2.1. On glibc 2.1, the Dl_info api defined in

<dlfcn.h> 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
This commit is contained in:
ramiro%netscape.com
1999-06-16 04:55:36 +00:00
parent c24a0ef0ee
commit 43674ab48e
2 changed files with 22 additions and 0 deletions

View File

@@ -24,7 +24,18 @@
#include <windows.h>
#elif defined(linux)
#include <setjmp.h>
//
// On glibc 2.1, the Dl_info api defined in <dlfcn.h> 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 <dlfcn.h>
#endif
#if defined(NS_MT_SUPPORTED)