Complete.Org: Mailing Lists: Archives: freeciv-dev: March 1999:
Re: [Freeciv-Dev] 1.8.0 and network byte order
Home

Re: [Freeciv-Dev] 1.8.0 and network byte order

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] 1.8.0 and network byte order
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Thu, 4 Mar 1999 20:43:12 +1100

Mitch Davis wrote:
> > On Wed, 3 Mar 1999, Mitch Davis wrote:
> > > The *right* way is to use the htonl/htons/ntohl/ntohs macros
> > > which appear in /usr/include/netinet/in.h on most machines.

> One thing I noticed:  Under HP-UX and many other Unixes, 
> #include <arpa/inet.h> must be used to bring in the prototypes
> for the conversion macros.

I notice sernet.c already has

  #include <netinet/in.h>
  #include <arpa/inet.h>

so these should be no problem.  (That is, any system which
currently compiles freeciv should have these headers).

-- David

[Prev in Thread] Current Thread [Next in Thread]