mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Solaris doesn't have flock and fcntl is useless so make a no-op flock. Reported
by Dagobert Michelsen.
This commit is contained in:
parent
4d53fd98a6
commit
b2224947fa
7
compat.h
7
compat.h
@ -176,6 +176,13 @@ typedef uint64_t u_int64_t;
|
||||
#define TTY_NAME_MAX 32
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FLOCK
|
||||
#define LOCK_SH 0
|
||||
#define LOCK_EX 0
|
||||
#define LOCK_NB 0
|
||||
#define flock(fd, op) (0)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_BZERO
|
||||
#undef bzero
|
||||
#define bzero(buf, len) memset(buf, 0, len);
|
||||
|
@ -386,6 +386,7 @@ AC_CHECK_FUNCS(
|
||||
[ \
|
||||
bzero \
|
||||
dirfd \
|
||||
flock \
|
||||
setproctitle \
|
||||
sysconf \
|
||||
cfmakeraw \
|
||||
|
Loading…
Reference in New Issue
Block a user