mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add compat clock_gettime for older macOS. GitHub issue 2555.
This commit is contained in:
12
compat.h
12
compat.h
@ -265,6 +265,13 @@ void warnx(const char *, ...);
|
||||
#define HOST_NAME_MAX 255
|
||||
#endif
|
||||
|
||||
#ifndef CLOCK_REALTIME
|
||||
#define CLOCK_REALTIME 0
|
||||
#endif
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
#define CLOCK_MONOTONIC CLOCK_REALTIME
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FLOCK
|
||||
#define LOCK_SH 0
|
||||
#define LOCK_EX 0
|
||||
@ -342,6 +349,11 @@ const char *getprogname(void);
|
||||
void setproctitle(const char *, ...);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_CLOCK_GETTIME
|
||||
/* clock_gettime.c */
|
||||
int clock_gettime(int, struct timespec *);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_B64_NTOP
|
||||
/* base64.c */
|
||||
#undef b64_ntop
|
||||
|
Reference in New Issue
Block a user