http://old.nabble.com/-PATCH--cpio-2.11-%3A-need-to-declare-stat--%28build-failure-under-Gentoo-FreeBSD%29-p27961996.html --- a/src/filetypes.h +++ b/src/filetypes.h @@ -82,4 +82,6 @@ #define lstat stat #endif int lstat (); +#ifndef stat int stat (); +#endif