Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9387) Re: Re: mingw compile error
Home

[Freeciv-Dev] (PR#9387) Re: Re: mingw compile error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9387) Re: Re: mingw compile error
From: "Per Inge Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 14 Jul 2004 09:21:50 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9387 >

On Mon, 28 Jun 2004, Jason Dorje Short wrote:
> Marko Lindqvist wrote:
> > Jason Dorje Short wrote:
> >
> >> Per Inge Mathisen wrote:
> >>
> >>> server/sernet.c:161: undefined reference to `handle_stdin_close'
> >>
> >> It's a static function inside sernet.c
> >
> >Only if "#ifndef SOCKET_ZERO_ISNT_STDIN", should probably be just empty
> > function when SOCKET_ZERO_ISNT_STDIN
>
> Or just don't call the function in that case.
>
> Will someone make a patch and send it to RT?

Index: sernet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/sernet.c,v
retrieving revision 1.119
diff -u -d -w -b -r1.119 sernet.c
--- sernet.c    17 May 2004 02:16:15 -0000      1.119
+++ sernet.c    14 Jul 2004 16:19:30 -0000
@@ -130,13 +130,13 @@

/*****************************************************************************
   This happens if you type an EOF character with nothing on the current line.
*****************************************************************************/
-#ifndef SOCKET_ZERO_ISNT_STDIN
 static void handle_stdin_close(void)
 {
+#ifndef SOCKET_ZERO_ISNT_STDIN
   freelog(LOG_NORMAL, _("Server cannot read standard input. Ignoring input."));
   no_input = TRUE;
-}
 #endif
+}
 #ifdef HAVE_LIBREADLINE
/****************************************************************************/





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9387) Re: Re: mingw compile error, Per Inge Mathisen <=