소스 검색

ldso: fix build error due to missing variable 'st'

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@gmail.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Douglas Mencken 13 년 전
부모
커밋
63e61626c1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ldso/ldso/ldso.c

+ 1 - 0
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) {
 			break;