From df31d32b411022d130b078de177cfa40b7bf6cde Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 22 Jan 2006 19:35:08 +0000 Subject: Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt --- ldso/libdl/libdl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldso/libdl') diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 0da1882d7..37b1c3abd 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -3,7 +3,7 @@ * Program to load an ELF binary on a linux system, and run it * after resolving ELF shared library symbols * - * Copyright (C) 2000-2004 by Erik Andersen + * Copyright (C) 2000-2006 by Erik Andersen * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald, * David Engel, Hongjiu Lu and Mitch D'Souza * @@ -30,7 +30,6 @@ */ -#define _GNU_SOURCE #include #include @@ -599,6 +598,7 @@ char *dlerror(void) /* * Dump information to stderrr about the current loaded modules */ +#ifdef __USE_GNU static char *type[] = { "Lib", "Exe", "Int", "Mod" }; int dlinfo(void) @@ -703,3 +703,4 @@ int dladdr(const void *__address, Dl_info * __info) return 1; } } +#endif -- cgit v1.2.3