intel / PerfSpect

System performance analysis and characterization tool
BSD 3-Clause "New" or "Revised" License
338 stars 31 forks source link

Fix missing <unistd.h> header for sleep(3) definition #52

Closed ColinIanKing closed 1 year ago

ColinIanKing commented 1 year ago

Clean up build warning: src/calibrate.c: In function ‘Calibrate’: src/calibrate.c:32:9: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration] 32 | sleep(1);

hilldani commented 1 year ago

Thanks! running the tests

hilldani commented 1 year ago

quick question what OS are you building on that shows this error? When we build in centos 7 I don't see this warning

ColinIanKing commented 1 year ago

I'm building this with debian bookworm and sid.