svn commit: trunk/uClibc/ldso/libdl

aldot at uclibc.org aldot at uclibc.org
Fri May 23 15:19:04 UTC 2008


Author: aldot
Date: 2008-05-23 08:19:02 -0700 (Fri, 23 May 2008)
New Revision: 22062

Log:
- fix compilation error


Modified:
   trunk/uClibc/ldso/libdl/libdl.c


Changeset:
Modified: trunk/uClibc/ldso/libdl/libdl.c
===================================================================
--- trunk/uClibc/ldso/libdl/libdl.c	2008-05-23 12:53:18 UTC (rev 22061)
+++ trunk/uClibc/ldso/libdl/libdl.c	2008-05-23 15:19:02 UTC (rev 22062)
@@ -33,6 +33,7 @@
 #include <ldso.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdbool.h>
 
 
 #ifdef SHARED
@@ -164,7 +165,7 @@
 	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 @@
 	from = (ElfW(Addr)) __builtin_return_address(0);
 
 	if (!_dl_init) {
-		_dl_init++;
+		_dl_init = true;
 		_dl_malloc_function = malloc;
 		_dl_free_function = free;
 	}




More information about the uClibc-cvs mailing list