[git commit] ldso: fix build error due to missing variable 'st'

Carmelo Amoroso carmelo.amoroso at st.com
Tue Jul 12 07:39:17 UTC 2011

commit: http://git.uclibc.org/uClibc/commit/?id=63e61626c1e052c55d76861b771eda6602a14477
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Fix a build error triggered when LDSO_PRELOAD_FILE_SUPPORT is enabled
due to missing definition of 'st' variable.

Signed-off-by: Douglas Mencken <dougmencken at gmail.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
 ldso/ldso/ldso.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 775acdd..34597f5 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -887,6 +887,7 @@ of this helper program; chances are you did not intend to run this program.\n\
 		char *preload;
 		int fd;
 		char c, *cp, *cp2;
+		struct stat st;
 		if (_dl_stat(LDSO_PRELOAD, &st) || st.st_size == 0) {

More information about the uClibc-cvs mailing list