binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>
Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
1 --- glibc-2.7/sysdeps/unix/sysv/linux/dl-osinfo.h.orig 2007-09-15 23:54:08.000000000 +0100
2 +++ glibc-2.7/sysdeps/unix/sysv/linux/dl-osinfo.h 2008-08-20 09:26:26.000000000 +0100
8 + int versionindex = 0;
12 /* Try the uname system call. */
18 + /* We are only interested in the first three kernel numbers, so */
19 + /* chop off anything past that: */
25 + if (versionindex == 63) break;
26 + if (*choppoint == '.') dotsfound++;
30 + if (*choppoint == '0' || *choppoint == '1'
31 + || *choppoint == '2' || *choppoint == '3'
32 + || *choppoint == '4' || *choppoint == '5'
33 + || *choppoint == '6' || *choppoint == '7'
34 + || *choppoint == '8' || *choppoint == '9')
44 /* Now convert it into a number. The string consists of at most
46 + three parts. Now it does, anyway. ;-) */