Преглед изворни кода

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 пре 18 година
родитељ
комит
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;