URL:
  <http://gna.org/bugs/?18924>

                 Summary: Windows build fails because unconditional
arpa/inet.h include
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 05 Nov 2011 10:07:33 AM EET
                Category: bootstrap
                Severity: 3 - Normal
                Priority: 9 - Immediate
                  Status: Ready For Test
             Assigned to: cazfi
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.5.0

    _______________________________________________________

Details:

packets.c includes arpa/inet.h unconditionally for ntohs(). In reality it
depends on system which header ntohs() is found from.

Attached fix makes packets.c to include only headers that exist, and to
include correct header for system in question.

As a compilation fix, this will be committed shortly.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 05 Nov 2011 10:07:33 AM EET  Name: NtohsInclude.diff  Size: 1kB  
By: cazfi

<http://gna.org/bugs/download.php?file_id=14424>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18924>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to