[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiny heads-up: in_port_t defined in netinet/in.h

From: Peter 'Luna' Runestig
Subject: Re: Tiny heads-up: in_port_t defined in netinet/in.h
Date: Sat, 16 Dec 2000 18:59:20 +0100

Ulrich Drepper wrote:
> "Peter 'Luna' Runestig" <address@hidden> writes:
> > In glibc 2.2, ``in_port_t´´ is defined in netinet/in.h, not in the
> > `´usual`´ places.
> I don't know what is the "usual" place you refer to but <netinet/in.h>
> is the correct place.  Fix this other OS.

There is no OS to fix. I was talking about the GNU "autoconf" toolkit,
the one that builds the popular "configure" shell script. It's standard
macro AC_CHECK_TYPE, which is used to see if the system has a particular
type defined, works like this (from it's info file):

     If the type TYPE is not defined in `sys/types.h', or `stdlib.h' or
     `stddef.h' if they exist, define it to be the C (or C++) builtin
     type DEFAULT; e.g., `short' or `unsigned'.

My point was just that this doesn't work as expected on glibc 2.2:
AC_CHECK_TYPE(in_port_t, unsigned short int)

Peter 'Luna' Runestig (fd. Altberg), Sweden <address@hidden>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B  42EA CB99 A35C D07B BE13
AOL Instant Messenger Screenname: PRunestig

reply via email to

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