From af8902fefede4978b1594470c343bed12aa575df Mon Sep 17 00:00:00 2001
From: "Eric S. Raymond" <esr@thyrsus.com>
Date: Mon, 7 Feb 2000 20:13:27 +0000
Subject: BSD portability patch.

svn path=/trunk/; revision=2737
---
 fetchmail.c | 3 +++
 1 file changed, 3 insertions(+)

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());
-- 
cgit v1.2.3