delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/11/08:26:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <001301c16ab4$98e0a040$0100007f@localhost>
From: "Chuck Higgins" <chuck DOT higgins AT ntlworld DOT com>
To: <cygwin AT cygwin DOT com>
Subject: [patch] Minor problems building inetutils
Date: Sun, 11 Nov 2001 13:26:08 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

I came a across a couple of glitches when I came to compile inetutils, minor
stuff, but I thought I'd mention them (that's inetutils-1.3.2-15 and
cygwin-1.3.4-4).

rexecd.c includes <windows.h> inside of a function, which doesn't work any
more since windows.h now contains some functions definitions.

And, talks/msgs.c defines `timerclear' which doesn't work since it's now in
the standard headers as a macro.

--- rexecd/rexecd.c.orig Wed Jul  5 12:44:42 2000
+++ rexecd/rexecd.c Wed Nov  7 02:44:36 2001
@@ -78,6 +78,10 @@ static char sccsid[] = "@(#)rexecd.c 8.1
 #include <sys/select.h>
 #endif

+#ifdef __CYGWIN__
+#include <windows.h>
+#endif
+
 /*VARARGS1*/
 int error();

@@ -122,7 +126,6 @@ doit(f, fromp)
  struct sockaddr_in *fromp;
 {
 #ifdef __CYGWIN__
-#include <windows.h>
  HANDLE hToken;
 #endif
  char *cmdbuf, *cp, *namep;

--- talk/msgs.c.orig Wed Nov  7 11:47:40 2001
+++ talk/msgs.c Wed Nov  7 11:53:08 2001
@@ -91,12 +91,3 @@ end_msgs()
  signal(SIGALRM, SIG_DFL);
 }

-#ifdef __CYGWIN__
-void timerclear (tv)
-struct timeval *tv;
-{
- tv->tv_sec = 0;
- tv->tv_usec = 0;
-}
-#endif
-




--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019