Solaris doesn't have flock and fcntl is useless so make a no-op flock. Reported

by Dagobert Michelsen.
pull/1/head
Nicholas Marriott 2014-09-23 10:44:45 +01:00
parent 4d53fd98a6
commit b2224947fa
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -386,6 +386,7 @@ AC_CHECK_FUNCS(
[ \
bzero \
dirfd \
flock \
setproctitle \
sysconf \
cfmakeraw \