소스 검색

Aurelien Jacobs writes:

After our last update a new compilation breakage appeared when compiling
gcc:

/home/aurel/geex/geexbox/build.i386/toolchain/i386-pc-linux-uclibc/sysroot/usr/include/bits/uClibc_stdio.h:346: error: expected initializer before 'attribute_hidden'

Some investigations revealed that the following changeset is responsible
for this breakage:

http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_stdio.h?rev=16801&r1=16793&r2=16801&diff_format=h

Reverting just one hunk of this changeset fixed the problem us.
I'm not sure this is the right fix, but please see attached patch.


Look good to me.
Joakim Tjernlund 20 년 전
부모
커밋
f18e7e92e0
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libc/sysdeps/linux/common/bits/uClibc_stdio.h

+ 1 - 1
libc/sysdeps/linux/common/bits/uClibc_stdio.h

@@ -341,7 +341,7 @@ struct __STDIO_FILE_STRUCT {
 /**********************************************************************
 /**********************************************************************
  * PROTOTYPES OF INTERNAL FUNCTIONS
  * PROTOTYPES OF INTERNAL FUNCTIONS
  **********************************************************************/
  **********************************************************************/
-#ifdef _LIBC
+#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
 
 
 extern void _stdio_init(void) attribute_hidden;
 extern void _stdio_init(void) attribute_hidden;
 extern void _stdio_term(void) attribute_hidden;
 extern void _stdio_term(void) attribute_hidden;