From owner-freebsd-doc Wed May 10 15: 5:17 2000 Delivered-To: freebsd-doc@freebsd.org Received: from news.IAEhv.nl (news.IAE.nl [194.151.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 4CE9337B708 for ; Wed, 10 May 2000 15:05:12 -0700 (PDT) (envelope-from marc@bowtie.nl) Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id AAA06785; Thu, 11 May 2000 00:05:09 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by bowtie.nl (8.8.8/8.8.8) with ESMTP id AAA05448; Thu, 11 May 2000 00:01:21 +0200 (CEST) (envelope-from marc@bowtie.nl) Message-Id: <200005102201.AAA05448@bowtie.nl> To: Jeroen Ruigrok van der Werven Cc: doc@freebsd.org, Sheldon Hearn Subject: Re: ALIGN() macro In-reply-to: jruigrok's message of Wed, 10 May 2000 19:42:22 +0200. <20000510194221.B20181@lucifer.bart.nl> Date: Thu, 11 May 2000 00:01:21 +0200 From: Marc van Kempen Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <20000510194221.B20181@lucifer.bart.nl>, Jeroen Ruigrok van der Werven writes: >-On [20000509 12:40], Marc van Kempen (marc@bowtie.nl) wrote: >>> >>> >>> Um, what happens when you include and as >>> directed by the documentation? >>> >>Not much, those two files were included already and apparently don't >>pickup > >Try substituting sys/param.h for sys/types.h > To iterate once more, the problem is that the ALIGN macro is not being picked up even though and are included. The problem arises from the use of the CMSG_DATA macro, which seems to be related to sendmsg(), and uses the ALIGN macro. The manual page for sendmsg() or similar states that you only need and , but this fails, it only works if you also include where the ALIGN macro is defined. So the question again is: is the manual page in error or are the include files wrong? If it's the manual page, in which manual page are you supposed to find information about the use of the CMSG_DATA macro? See the example program, it doesn't compile without the include. #include #include #include int main(int argc, char **argv) { struct msghdr msg; unsigned char *data; data = CMSG_DATA(&msg); return(0); } Marc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message