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 <email@example.com> zsnes-1.51-r2.ebuild,
Fix compile with gcc47 (bug #419635), submitted by Nikos Chantziaras