aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-02-07 20:13:27 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-02-07 20:13:27 +0000
commitaf8902fefede4978b1594470c343bed12aa575df (patch)
tree95df8a184d9d9ecc7a884a558a1583c07e65abd7 /fetchmail.c
parenta39bfff0b890a27afe93c27d3e372971ed674bef (diff)
downloadfetchmail-af8902fefede4978b1594470c343bed12aa575df.tar.gz
fetchmail-af8902fefede4978b1594470c343bed12aa575df.tar.bz2
fetchmail-af8902fefede4978b1594470c343bed12aa575df.zip
BSD portability patch.
svn path=/trunk/; revision=2737
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 7721aea6..bac4a68d 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -575,6 +575,9 @@ int main(int argc, char **argv)
signal(SIGQUIT, terminate_run);
/* here's the exclusion lock */
+#ifndef O_SYNC
+#define O_SYNC 0 /* use it if we have it */
+#endif
if ((st = open(lockfile, O_WRONLY|O_CREAT|O_EXCL|O_SYNC, 0666)) != -1)
{
sprintf(tmpbuf,"%d", getpid());