Issue while building the "cmocka-master" on windows
I am trying to run the test_uptime on windows in VS2019. I made a few changes to the project so it could work properly on windows, but i can't resolve the following error: "unresolved external symbol _uptime referenced in function _calc_uptime" . The error comes from the following code in uptime.c file:
up = uptime("/proc/uptime", &uptime_secs, &idle_secs);
if (up == 0) {
return NULL;
}
How to make the uptime function work on windows ?