Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Gerrit P. Haase" Organization: convey Information Systems GmbH To: cygwin 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: , 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