diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-07 20:13:27 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-07 20:13:27 +0000 |
commit | af8902fefede4978b1594470c343bed12aa575df (patch) | |
tree | 95df8a184d9d9ecc7a884a558a1583c07e65abd7 | |
parent | a39bfff0b890a27afe93c27d3e372971ed674bef (diff) | |
download | fetchmail-af8902fefede4978b1594470c343bed12aa575df.tar.gz fetchmail-af8902fefede4978b1594470c343bed12aa575df.tar.bz2 fetchmail-af8902fefede4978b1594470c343bed12aa575df.zip |
BSD portability patch.
svn path=/trunk/; revision=2737
-rw-r--r-- | fetchmail.c | 3 |
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()); |