Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gerrit.haase@t-online.de>
Organization: convey Information Systems GmbH
To: cygwin <cygwin@cygwin.com>
Date: Thu, 31 May 2001 13:47:46 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Question to Dr. Volker Zell's sendmail-patch
Reply-to: <gerrit@familiehaase.de>, <gerrit.haase@t-on>
Message-ID: <3B164B82.25566.976894@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)

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

