1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/x11-clocks/xalarm/files/patch-ab

20 lines
516 B
Plaintext
Raw Normal View History

*** file.c.orig Wed Dec 4 08:19:13 1996
--- file.c Wed Dec 4 08:25:00 1996
***************
*** 229,235 ****
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
lock.l_start = lock.l_len = (long) 0;
! fcntl (fileno (file), F_SETFL, O_SYNC);
fcntl (fileno (file), F_SETLKW, &lock);
#endif
--- 229,235 ----
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
lock.l_start = lock.l_len = (long) 0;
! fcntl (fileno (file), F_SETFL, O_FSYNC);
fcntl (fileno (file), F_SETLKW, &lock);
#endif