This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Question to Dr. Volker Zell's sendmail-patch
- To: cygwin <cygwin at cygwin dot com>
- Subject: Question to Dr. Volker Zell's sendmail-patch
- From: "Gerrit P. Haase" <gerrit dot haase at t-online dot de>
- Date: Thu, 31 May 2001 13:47:46 +0200
- Organization: convey Information Systems GmbH
- Reply-to: <gerrit at familiehaase dot de>,<gerrit dot haase at t-on
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