summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 15:19:02 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 15:19:02 +0000
commitba3b529ac84695b274c09707a8e55082baf9e499 (patch)
treec8007a7184104e56d36559b96b51de0b1ac42695 /ldso/libdl
parent1501c7892ac347bb74333cf26ece06009fbb6b7c (diff)
- fix compilation error
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/libdl.c5
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;
}