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 only fork one to assist in stop-start-daemon assumptions about daemon behavior
3 http://bugs.gentoo.org/190785
5 diff -durN glibc-2.10.1.orig/nscd/nscd.c glibc-2.10.1/nscd/nscd.c
6 --- glibc-2.10.1.orig/nscd/nscd.c 2009-02-06 21:10:27.000000000 +0100
7 +++ glibc-2.10.1/nscd/nscd.c 2009-11-13 00:50:24.000000000 +0100
12 + if (write_pid (_PATH_NSCDPID) < 0)
13 + dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
15 int nullfd = open (_PATH_DEVNULL, O_RDWR);
19 for (i = min_close_fd; i < getdtablesize (); i++)
24 - error (EXIT_FAILURE, errno, _("cannot fork"));
33 openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
35 - if (write_pid (_PATH_NSCDPID) < 0)
36 - dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
39 dbg_log (_("Could not create log file"));