Created attachment 314219 [details, diff] GCC 4.7 support Building zsnes with gcc-4.7.0 fails: tools/depbuild.cpp: In function 'void dependency_calculate(const char*, stat&)': tools/depbuild.cpp:181:37: error: 'F_OK' was not declared in this scope tools/depbuild.cpp:181:41: error: 'access' was not declared in this scope I am attaching a patch to fix this. It needs to be applied after all other current patches.
in portage. thanks for the bug report and patch.
04 Jun 2012; Michael Sterrett <mr_bones_@gentoo.org> zsnes-1.51-r2.ebuild, files/zsnes-1.51-CC-quotes.patch, files/zsnes-1.51-archopt-july-23-update.patch, files/zsnes-1.51-buffer.patch, files/zsnes-1.51-depbuild.patch, +files/zsnes-1.51-gcc47.patch, files/zsnes-1.51-libpng.patch: Fix compile with gcc47 (bug #419635), submitted by Nikos Chantziaras