~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gc/dyn_load.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * None of this is safe with dlclose and incremental collection.
27
27
 * But then not much of anything is safe in the presence of dlclose.
28
28
 */
29
 
#if defined(__linux__) && !defined(_GNU_SOURCE)
 
29
#if (defined(__linux__) || defined(__GLIBC__)) && !defined(_GNU_SOURCE)
30
30
    /* Can't test LINUX, since this must be define before other includes */
31
31
#   define _GNU_SOURCE
32
32
#endif
381
381
/* For glibc 2.2.4+.  Unfortunately, it doesn't work for older  */
382
382
/* versions.  Thanks to Jakub Jelinek for most of the code.     */
383
383
 
384
 
# if defined(LINUX) /* Are others OK here, too? */ \
 
384
# if (defined(LINUX) || defined (__GLIBC__)) /* Are others OK here, too? */ \
385
385
     && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
386
386
         || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) 
387
387