It was to late.

This commit is contained in:
Sebastian Ramacher 2012-03-27 11:56:42 +02:00
parent 87ef40e399
commit c1834500b1

View File

@ -28,7 +28,7 @@
#define file_lock_set(fd, cmd) \
{ \
struct flock lock = { .l_type = cmd, .l_start = 0, .l_whence = SEEK_SET, .l_len = 0}; \
fcntl(fd, F_SETLK, lock, NULL); \
fcntl(fd, F_SETLK, lock); \
}
#endif