fix compilation on OpenBSD
This commit is contained in:
parent
dfc253bebf
commit
94706763e5
5 changed files with 26 additions and 7 deletions
|
@ -19,10 +19,13 @@
|
|||
* http://www.gnu.org/copyleft/gpl.html *
|
||||
***********************************************************************/
|
||||
|
||||
#include "clock_nanosleep.h"
|
||||
#include <errno.h> // for errno, EINVAL
|
||||
#include <time.h> // for nanosleep, NULL
|
||||
|
||||
#include "clock_nanosleep.h"
|
||||
#ifdef MISSING_GETTIME
|
||||
#include "../clock_gettime/clock_gettime.h" // for clock_gettime
|
||||
#endif
|
||||
|
||||
int clock_nanosleep(clockid_t id, int flags, const struct timespec *ts,
|
||||
struct timespec *ots) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue