magical incantation to not stomp DragonFly's clock_nanosleep #1121

pull/1305/head
nick black 3 years ago
parent 9cf2925f47
commit fb85bb9a53
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -3,6 +3,7 @@
#include <time.h>
#include <stdint.h>
#include "compat/compat.h"
#if !defined(__DragonFly_version) || __DragonFly_version < 500907
// clock_nanosleep is unavailable on DragonFly BSD and Mac OS X
int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *request,
struct timespec *remain){
@ -28,3 +29,4 @@ int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *request
}
#endif
#endif
#endif

Loading…
Cancel
Save