diff --git a/src/lib/w32/unistd.h b/src/lib/w32/unistd.h index cf24bf8e..3da8d755 100644 --- a/src/lib/w32/unistd.h +++ b/src/lib/w32/unistd.h @@ -122,10 +122,11 @@ typedef int socklen_t; struct flock { - int l_type; - int l_whence; - int l_start; - int l_len; + short l_type; + short l_whence; + off_t l_start; + off_t l_len; + /* intentionally missing: pid_t l_pid */ }; extern int posix_fd2socket(int fd);