mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
define clockwait save in presence of _USE_GNU #2291
This commit is contained in:
parent
9b30487e4a
commit
20fa1db5dd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user