From owner-freebsd-current Sat Mar 25 3:28:55 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail7.fujitsu.co.jp (fgwmail7.fujitsu.co.jp [192.51.44.37]) by hub.freebsd.org (Postfix) with ESMTP id EE05437B5E4 for ; Sat, 25 Mar 2000 03:28:52 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m2.gw.fujitsu.co.jp by fgwmail7.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id UAA07192; Sat, 25 Mar 2000 20:28:16 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from incapgw.fujitsu.co.jp by m2.gw.fujitsu.co.jp (8.9.3/3.7W-0003-Fujitsu Domain Master) id UAA25866; Sat, 25 Mar 2000 20:28:14 +0900 (JST) Received: from localhost ([192.168.245.157]) by incapgw.fujitsu.co.jp (8.9.3/3.7W-0002) id UAA29445; Sat, 25 Mar 2000 20:28:12 +0900 (JST) 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' In-Reply-To: References: <20000325191659G.shin@nd.net.fujitsu.co.jp> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000325202906C.shin@nd.net.fujitsu.co.jp> Date: Sat, 25 Mar 2000 20:29:06 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 20 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > So I think machine/param.h should be included from > > sys/socket.h for more portability. > > can't be included in any standard header > (except in ) 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 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