I ran into this on Fedora 13,
[HOST-CC] tools/cabman/cabinet.cxx
tools/cabman/cabinet.cxx: In member function ‘bool
CCabinet::CreateSimpleCabinet()’:
tools/cabman/cabinet.cxx:2177: error: no matching function for call to
‘stat::stat(char [260], stat*)’
/usr/include/bits/stat.h:40: note: candidates are: stat::stat()
/usr/include/bits/stat.h:40: note: stat::stat(const stat&)
from
http://code.google.com/p/libproxy/issues/detail?id=122 the patch
is based on this;
http://code.google.com/p/libproxy/issues/attachmentText?id=122&aid=2002…
Index: tools/cabman/cabinet.cxx
===================================================================
--- tools/cabman/cabinet.cxx (revision 48297)
+++ tools/cabman/cabinet.cxx (working copy)
@@ -21,7 +21,8 @@
#if !defined(WIN32)
# include <dirent.h>
#endif
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if !defined(WIN32) || defined(__FreeBSD__) || defined(__APPLE__)
+# include <sys/types.h>
# include <sys/stat.h>
#endif // __FreeBSD__
#include "cabinet.h"
Not sure this is right, so~ posted here for fast review and fix,
James