diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-23 15:19:02 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-23 15:19:02 +0000 |
commit | ba3b529ac84695b274c09707a8e55082baf9e499 (patch) | |
tree | c8007a7184104e56d36559b96b51de0b1ac42695 | |
parent | 1501c7892ac347bb74333cf26ece06009fbb6b7c (diff) |
- fix compilation error
-rw-r--r-- | ldso/libdl/libdl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 1618e7b82..ce588cc11 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -33,6 +33,7 @@ #include <ldso.h> #include <stdio.h> #include <string.h> +#include <stdbool.h> #ifdef SHARED @@ -164,7 +165,7 @@ void *dlopen(const char *libname, int flag) struct init_fini_list *tmp, *runp, *runp2, *dep_list; unsigned int nlist, i; struct elf_resolve **init_fini_list; - static smallint _dl_init; + static bool _dl_init; /* A bit of sanity checking... */ if (!(flag & (RTLD_LAZY|RTLD_NOW))) { @@ -175,7 +176,7 @@ void *dlopen(const char *libname, int flag) from = (ElfW(Addr)) __builtin_return_address(0); if (!_dl_init) { - _dl_init++; + _dl_init = true; _dl_malloc_function = malloc; _dl_free_function = free; } |