diff options
Diffstat (limited to 'ldso/libdl')
-rw-r--r-- | ldso/libdl/libdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index d21f8a6fd..4538d91e7 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -447,7 +447,7 @@ void *dlsym(void *vhandle, const char *name) struct dyn_elf *rpnt; void *ret; /* Nastiness to support underscore prefixes. */ -#ifndef __UCLIBC_NO_UNDERSCORES__ +#ifdef __UCLIBC_UNDERSCORES__ char tmp_buf[80]; char *name2 = tmp_buf; size_t nlen = strlen (name) + 1; @@ -508,7 +508,7 @@ void *dlsym(void *vhandle, const char *name) if (!ret) _dl_error_number = LD_NO_SYMBOL; out: -#ifndef __UCLIBC_NO_UNDERSCORES__ +#ifdef __UCLIBC_UNDERSCORES__ if (name2 != tmp_buf) free (name2); #endif |