Subject: Question to Dr. Volker Zell's sendmail-patch
From: "Gerrit P. Haase" <[email-masked]>
To: cygwin <[email-masked]>
Date: Thu, 31 May 2001 13:47:46 +0200

Hi Dr. Zell,

i found your patch at the archives, i want to build sendmail, but i got some questions.
Here is a part from that patch.
You do a define of USE_LOCKF.
A little below, there is a part with LOCK_EX and flock commented out.
Also i found in the sources a definition of LOCK_EX, which is initialised with
F_LOCK. So i didn't found F_LOCK, where does it came from?

 /*
+** Cygwin
+*/
+
+#ifdef __CYGWIN__
+# define HASSNPRINTF    1
+# define USE_LOCKF	1
+# define USE_SETEUID	1
+# define USE_VSYSLOG	0
+# define _PATH_MAILDIR	"/usr/spool/mail"
+#endif
+
+/*
  * If you don't have flock, you could try using lockf instead.
  */
 
[...]
@@ -1121,12 +1137,14 @@ tryagain:

 	/* Wait until we can get a lock on the file. */
+#ifndef __CYGWIN__
 	if (flock(mbfd, LOCK_EX) < 0)
 	{
 		mailerr("450 4.2.0", "%s: %s", path, errstring(errno));
 		goto err1;
 	}
-
+#endif

-gph

-- 
Gerrit P. Haase

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple