Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C0FAB15.2697F6C0@rowman.com> Date: Thu, 06 Dec 2001 12:29:57 -0500 From: John Peacock MIME-Version: 1.0 To: "H.Merijn Brand" CC: Perl 5 Porters , CygWin Discussion Subject: Cygwin ualarm() breaks Perl [WAS Re: Cygwin @ 13452 warnings] References: <20011204134524 DOT 5ABD DOT H DOT M DOT BRAND AT hccnet DOT nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "H.Merijn Brand" wrote: > > the ualarm is still fatal on 1.3.6-2. I've just removed the second argument in > I found the following entry in winsup/cygwin/ChangeLog: 2001-11-27 Christopher Faylor * cygwin.din (ualarm): New export. (ualarm): New function. From Alexandr V. Shutko. It looks like the unistd.h header never got updated; here is a small patch to /usr/include/sys/unistd.h which seems to fix the compiling: --- unistd.h.old Thu Dec 6 12:17:06 2001 +++ unistd.h Thu Dec 6 12:19:06 2001 @@ -133,7 +133,7 @@ #if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(getdtablesize, (void)); int _EXFUN(setdtablesize, (int)); -useconds_t _EXFUN(ualarm, (useconds_t __useconds)); +useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval)); unsigned _EXFUN(usleep, (unsigned int __useconds)); int _EXFUN(ftruncate, (int __fd, off_t __length)); int _EXFUN(truncate, (const char *, off_t __length)); John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/