瀏覽代碼

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 19 年之前
父節點
當前提交
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
  **********************************************************************/
-#ifdef _LIBC
+#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
 
 extern void _stdio_init(void) attribute_hidden;
 extern void _stdio_term(void) attribute_hidden;