From owner-freebsd-current Tue Mar 21 19:40:31 2000 Delivered-To: freebsd-current@freebsd.org Received: from wint.itfs.nsk.su (wint.itfs.nsk.su [212.20.32.43]) by hub.freebsd.org (Postfix) with ESMTP id D4FCF37BB50 for ; Tue, 21 Mar 2000 19:40:26 -0800 (PST) (envelope-from nnd@wint.itfs.nsk.su) Received: (from nnd@localhost) by wint.itfs.nsk.su (8.9.3/8.9.3) id JAA05869; Wed, 22 Mar 2000 09:40:23 +0600 (NOVT) (envelope-from nnd) Date: Wed, 22 Mar 2000 09:40:23 +0600 (NOVT) Message-Id: <200003220340.JAA05869@wint.itfs.nsk.su> From: nnd@mail.nsk.ru To: current@freebsd.org Subject: Re: 'machine/param.h' required for 'sys/socket.h' In-Reply-To: <200003211853.e2LIrUg87051@nimitz.ca.sandia.gov> User-Agent: tin/1.4.2-20000123 ("Polish") (UNIX) (FreeBSD/5.0-CURRENT (i386)) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <200003211853.e2LIrUg87051@nimitz.ca.sandia.gov> Bruce A. Mah wrote: > --==_Exmh_789141986P > Content-Type: text/plain; charset=us-ascii > > If memory serves me right, Yoshinobu Inoue wrote: >> > > I feel requesting inclusion of machine/param.h for any apps >> > > which use socket is better. But if there are any other smarter >> > > solution, please let me know and I'll appreciate it much. >> > >> > should never be included by applications since >> > it is an implementation detail. >> > >> > Specify including in apps which use the CMSG*() macros. >> > doesn't depend on <*/param.h> unless these macros are used. >> > Since these macros are undocumented, applications that use them should >> > expect problems :-). >> > >> > Bruce >> >> After reading bmah's message, now I am inclined to including >> machine/param.h from sys/socket.h for maximum portability, if >> there is no spec for it, and if all other platforms doing it. > > Arrgh. Now it seems I might need to reverse my position. I looked > through some code fragments in UNIX Network Programming (Volume 1, > Second Edition, pp. 362-365), and there's some precedent for needing > with the CMSG*() macros. > > On the other hand, RFC 2292 and draft-ietf-ipngwg-rfc2292bis (the > references I was originally working from) don't mention this requirement > at all; they just say that CMSG*() are defined with . I'm > slightly confused by now. > > I'm going to send off a note to the authors of > draft-ietf-ipngwg-rfc229bis asking for some clarification. In the > meantime, maybe we should hold off on doing any changes. Can we (temporary) unbroke 'net/pchar' port in FreeBSD with the next patch (until the Perfect Solution will be found :-) : =================================================================== diff -ruN pchar.orig/patches/patch-aa pchar/patches/patch-aa --- pchar.orig/patches/patch-aa Thu Jan 1 07:00:00 1970 +++ pchar/patches/patch-aa Wed Mar 22 09:36:04 2000 @@ -0,0 +1,10 @@ +--- PctestIpv6Udp.h.ORIG Wed Jan 19 23:14:42 2000 ++++ PctestIpv6Udp.h Wed Mar 22 09:31:19 2000 +@@ -29,6 +29,7 @@ + #endif /* STDC_HEADERS */ + + #include ++#include + #include + #include + To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message