[klibc] [patch 05/12] make __constant_htons visible

H. Peter Anvin hpa at zytor.com
Sun May 22 10:35:29 PDT 2005


Erik van Konijnenburg wrote:
> The __constant_htons and similar are defined in klibc version
> of netinet/in.h, but not in glibc counterpart.
> Include the same thing from <asm/byteorder.h>,
> which is available in both glibc and klibc.
> 
> Perhaps __constant_htons should be dropped from the
> klibc version of netinet/in.h: it provides nothing that
> you cannot get via asm/byteorder, and gets in the way of
> porting between glibc and klibc.
> 

They're not really meant to be used as-is, but rather as an 
implementation detail.

	-hpa



More information about the klibc mailing list