eburtsev / logkeys

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

logkeys.cc:473: error: ‘umask’ was not declared in this scope #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm getting the following error when trying to compile logkeys on Fedora
Linux 12:

make  all-recursive
make[1]: Entrando no diretório `/home/taylon/rpmbuild/SOURCES/logkeys-0.1.0'
Making all in src
make[2]: Entrando no diretório
`/home/taylon/rpmbuild/SOURCES/logkeys-0.1.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -Wall -O3 -MT logkeys.o -MD -MP -MF
.deps/logkeys.Tpo -c -o logkeys.o logkeys.cc
logkeys.cc: In function ‘int main(int, char**)’:
logkeys.cc:473: error: ‘umask’ was not declared in this scope
make[2]: ** [logkeys.o] Erro 1
make[2]: Saindo do diretório `/home/taylon/rpmbuild/SOURCES/logkeys-0.1.0/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/taylon/rpmbuild/SOURCES/logkeys-0.1.0'
make: ** [all] Erro 2

Seems to be missing a "#include <sys/stat.h>".
I added it on the code and everything worked fine.

Original issue reported on code.google.com by taylonsi...@gmail.com on 19 Apr 2010 at 8:53

GoogleCodeExporter commented 9 years ago
Wow, distributions must really differ from one another.. :S

Well, thanks for reporting it! :)

Fix committed as r35.

Original comment by kernc...@gmail.com on 19 Apr 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Thank you :) 

Original comment by jalpesh....@gmail.com on 21 Feb 2012 at 7:08