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

                 Summary: modinst/download.c fails to compile
                 Project: Freeciv
            Submitted by: kernigh
            Submitted on: Saturday 08/28/2010 at 17:33
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk
         Discussion Lock: Any
        Operating System: *BSD
         Planned Release: 

    _______________________________________________________

Details:

modinst/download.c of trunk r17877 fails to compile:

In file included from ../../modinst/download.c:19:
/usr/include/sys/socket.h:148: error: syntax error before "u_int8_t"
/usr/include/sys/socket.h:166: error: syntax error before "u_int8_t"
/usr/include/sys/socket.h:169: error: syntax error before "u_int64_t"
/usr/include/sys/socket.h:235: error: syntax error before "uid_t"
/usr/include/sys/socket.h:240: error: syntax error before "gid_t"
/usr/include/sys/socket.h:368: error: syntax error before "socklen_t"
...

This is like bug #16458; my OpenBSD system requires programs to include
<sys/types.h> before <sys/socket.h>. I attach diff to add <sys/types.h> to
modinst/download.c.

(Other files, like utility/netintf.c, escape the error only because they
include <stdio.h> or <arpa/inet.h> before <sys/socket.h>. Both of these
headers seem to suck in <sys/types.h>.)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Saturday 08/28/2010 at 17:33  Name: ptrunk-types-before-socket.diff 
Size: 337B   By: kernigh
patch to modinst/download.c (trunk)
<http://gna.org/bugs/download.php?file_id=10051>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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