Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2000 20:29:06 +0900
From:      Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To:        bde@zeta.org.au
Cc:        bmah@CA.Sandia.GOV, nnd@mail.nsk.ru, current@FreeBSD.ORG
Subject:   Re: 'machine/param.h' required for 'sys/socket.h' 
Message-ID:  <20000325202906C.shin@nd.net.fujitsu.co.jp>
In-Reply-To: <Pine.BSF.4.21.0003252142050.654-100000@alphplex.bde.org>
References:  <20000325191659G.shin@nd.net.fujitsu.co.jp> <Pine.BSF.4.21.0003252142050.654-100000@alphplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > So I think machine/param.h should be included from
> > sys/socket.h for more portability.
> 
> <machine/param.h> can't be included in any standard header
> (except in <sys/param.h>) because it gives massive, undocumented
> namespace pollution.  The macro `MACHINE' is especially likely
> to conflict with an application macro.

Thanks again for your advice(and sorry for my ignorance).

> Instead, CMSG* should use _ALIGN() and _ALIGN() should be implemented
> somewhere that doesn't add any namespace pollution.  We currently
> use <machine/ansi.h> for things like this, but it is already too
> overloaded.
> 
> Bruce

OK, then how about creating machine/align.h?

Yoshinobu Inoue


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000325202906C.shin>