error: implicit declaration of function ‘fsync’ [-Werror=implicit-function-declaration]
leonstafford opened this issue · comments
Leon Stafford commented
failing to build on *buntu 12
c99 -Wall -pedantic -Werror -D _DEFAULT_SOURCE -c src/xorg.c
c99 -Wall -pedantic -Werror -D _DEFAULT_SOURCE -c src/console.c
c99 -Wall -pedantic -Werror -D _DEFAULT_SOURCE -c src/thinkpad.c
src/thinkpad.c: In function ‘thinkpad_turn_on’:
src/thinkpad.c:86:2: error: implicit declaration of function ‘fsync’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make: *** [thinkpad.o] Error 1
Mladen Mijatov commented
I'll check. Thanks for reporting.
Mladen Mijatov commented
fsync
function was added in glibc
version 2.8. Try changing it to fdatasync
and see if you can build. Also, sorry for the late reply. Am long overdue on my projects.
Mladen Mijatov commented
Just pushed version which allows you to specify with which provider program is to be built. This will allow you to go around this issue if you don't need ThinkPad support.