Project

General

Profile

Actions

Bug #4279

closed

Compiling error on MacOS Sierra

Added by Markus Griesslehner about 8 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2017-03-10
Due date:
% Done:

0%

Estimated time:
Found in version:
d08a8b9
Affected Versions:

Description

I get the following four errors while compiling on MacOS Sierra 10.12.3:

src/wrappers.c:195:2: error: "Implement renice for your platform!" [-Werror,-W#warnings]
#warning "Implement renice for your platform!"
^
src/wrappers.c:229:7: error: implicit declaration of function 'pthread_condattr_setclock' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
r = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
^
src/wrappers.c:229:7: note: did you mean 'pthread_condattr_destroy'?
/usr/include/pthread.h:312:5: note: 'pthread_condattr_destroy' declared here
int pthread_condattr_destroy(pthread_condattr_t *);
^
src/wrappers.c:303:7: error: implicit declaration of function 'clock_nanosleep' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
r = clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, &ts);
^
src/wrappers.c:320:40: error: use of undeclared identifier 'TIMER_ABSTIME'
r = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, &ts);
^
4 errors generated.

Thanks.

Actions

Also available in: Atom PDF