Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <000501bea5ec$b689ed70$67e88795@ind.tansu.com.au> Reply-To: "Eric Tang" From: "Eric Tang" To: Subject: B20.1: missing timercmp macro Date: Mon, 24 May 1999 23:52:46 +1000 Organization: Telstra Corporation MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Problem: When compiling cgoban-1.9.5, error reported on missing timercmp. Solution: In , the following should be added: #ifndef _GNU_H_WINDOWS32_SOCKETS struct timeval { long tv_sec; long tv_usec; }; // <- add the following: /* Operations on timevals. NB: timercmp does not work for >= or <=. */ #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #define timercmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) \ || (tvp)->tv_sec cmp (uvp)->tv_sec) #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) // <- end of addition -- Eric -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com