Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix OSX compilation by explicitly declaring flock as struct (fix #40) #43

Merged
merged 1 commit into from
May 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SNAPLib/Compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ bool connectNamedPipes(NamedPipe *pipe)
//
// Release any exclusive lock on the toServer pipe that may have been left by a now-dead client
//
flock lock;
struct flock lock;
lock.l_type = F_UNLCK;
lock.l_whence = SEEK_SET;
lock.l_start = 0;
Expand Down Expand Up @@ -2114,7 +2114,7 @@ NamedPipe *OpenNamedPipe(const char *pipeName, bool serverSide)
//
// Take an exclusive lock on the toServer pipe so that only one client is sending at a time.
//
flock lock;
struct flock lock;
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
lock.l_start = 0;
Expand Down