www.delorie.com/archives/browse.cgi | search |
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" <etang AT ind DOT tansu DOT com DOT au> |
From: | "Eric Tang" <etang AT ind DOT tansu DOT com DOT au> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | B20.1: <sys/time.h> missing timercmp macro |
Date: | Mon, 24 May 1999 23:52:46 +1000 |
Organization: | Telstra Corporation |
MIME-Version: | 1.0 |
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 <sys/time.h>, 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |