URL: <http://gna.org/patch/?6496>
Summary: Look ws2tcpip.h for socklen_t definition Project: Freeciv Submitted by: cazfi Submitted on: Tue 27 Oct 2015 06:31:55 PM EET Category: bootstrap Priority: 5 - Normal Status: Ready For Test Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.5.2, 2.6.0, 3.0.0 _______________________________________________________ Details: Looking through fc_config.h generated for the crosser based build I noticed that HAVE_SOCKLEN_T was not defined. Attached patch makes such builds to get socklen_t definition from ws2tcpip.h (no behavioral changes expected as we already we're fallbacking to identical definition): - Search socklen_t from Windows specific header ws2tcpip.h - Do not fail the socklen_t configure check just because (any) system lacks headers needed providing socklen_t in some other system - Include ws2tcpip.h to netintf.h for getting the definition also when doing the actual compilation For S2_6/TRUNK we should define HAVE_WS2TCPIP_H as a public macro in freeciv_config.h, but doing that alone, without fixing rest of bug #23989, would just cause compilation problems -> handle all of it in bug #23989. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 27 Oct 2015 06:31:55 PM EET Name: Ws2TcpIpSocklenT.patch Size: 1kB By: cazfi <http://gna.org/patch/download.php?file_id=25487> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?6496> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev