rdmenezes / wvstreams

Automatically exported from code.google.com/p/wvstreams
0 stars 0 forks source link

4.6.1 compile error - missing includes for lstat etc. #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download wvstreams-4.6.1.tar.bz2
2. try building
3. compile error:

./CXX -c streams/wvatomicfile   
streams/wvatomicfile.cc: In member function 'bool WvAtomicFile::open(const 
WvFastString&, int, mode_t)':
streams/wvatomicfile.cc:40:31: error: 'lstat' was not declared in this scope
streams/wvatomicfile.cc:40:60: error: 'S_ISREG' was not declared in this scope
streams/wvatomicfile.cc:47:24: error: '::umask' has not been declared
streams/wvatomicfile.cc:51:5: error: '::umask' has not been declared
streams/wvatomicfile.cc:57:9: error: '::fchmod' has not been declared
streams/wvatomicfile.cc: In member function 'bool WvAtomicFile::chmod(mode_t)':
streams/wvatomicfile.cc:90:29: error: 'fchmod' was not declared in this scope
make: *** [streams/wvatomicfile.o] Error 1

Attached a patch to fix the includes based on the referenced "stable" git 
repository

Original issue reported on code.google.com by kim...@gmail.com on 4 Apr 2011 at 12:13

Attachments: