http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #110 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-08-05 13:47:30 UTC --- (In reply to comment #107) > > Martin, you mentioned similar problem earlier, perhaps you already have > solution? I went for adding the includes. I wasn't looking into dependencies in much detail and ended up just adding #include <unistd.h> to: - ipc/chromium/src/base/file_util.cc - ipc/chromium/src/base/message_pump_libevent.cc - ipc/chromium/src/base/file_util_linux.cc - toolkit/crashreporter/client/crashreporter_gtk_common.cpp However, I also suspected some configure problem because I also had to tweak #if's in ipc/chromium/src/base/time_posix.cc. The patch that I use to do this is at http://labs.suse.cz/mjambor/undefined_and_pp_errors.diff In order to LTO build mozilla I currently need this one, a patch adding attribute used to various places I got from you and a simple patch fixing mozilla bug 652563.