define clockwait save in presence of _USE_GNU #2291

This commit is contained in:
nick black 2021-10-21 16:56:30 -04:00 committed by nick black
parent 9b30487e4a
commit 20fa1db5dd

View File

@ -38,8 +38,6 @@ extern "C" {
#define SIGQUIT 0
#define SIGCONT 0
#define SIGWINCH 0
// FIXME actually implement this honoring c: CLOCK_MONOTONIC
#define pthread_cond_clockwait(a, b, c, d) pthread_cond_timedwait(a, b, d)
#define gettimeofday mingw_gettimeofday
#define sigaddset(x, y)
typedef struct siginfo_t {
@ -68,6 +66,11 @@ struct winsize {
#include <sys/ioctl.h>
#endif
#ifndef _USE_GNU
// FIXME actually implement this honoring c: CLOCK_MONOTONIC
#define pthread_cond_clockwait(a, b, c, d) pthread_cond_timedwait(a, b, d)
#endif
int set_fd_nonblocking(int fd, unsigned state, unsigned* oldstate);
int set_fd_cloexec(int fd, unsigned state, unsigned* oldstate);