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

by Dagobert Michelsen.
This commit is contained in:
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 #define TTY_NAME_MAX 32
#endif #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 #ifndef HAVE_BZERO
#undef bzero #undef bzero
#define bzero(buf, len) memset(buf, 0, len); #define bzero(buf, len) memset(buf, 0, len);

View File

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