diff options
author | asmodai <asmodai@FreeBSD.org> | 2000-11-08 16:59:25 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2000-11-08 16:59:25 +0000 |
commit | 97f7cec0968d034bffbf124dc2946ada93fb521a (patch) | |
tree | a319994be8baea17b969a2ad4b67bde13b83b362 /release/fixit.services | |
parent | ac72a4e40bac92e338bc519ef554897709c848c1 (diff) | |
download | FreeBSD-src-97f7cec0968d034bffbf124dc2946ada93fb521a.zip FreeBSD-src-97f7cec0968d034bffbf124dc2946ada93fb521a.tar.gz |
Fix CMSG and ALIGN macro usage.
Previously we had to include <machine/param.h> or <sys/param.h> bogusly
due to the fact that <sys/socket.h> CMSG macros needed the ALIGN macro,
which was defined in param.h. However, including param.h was a disaster
for namespace pollution.
This solution, as contributed by shin a while ago, fixes it elegantly
by wrapping the definitions around some namespace pollution preventer
definitions.
This patch was long overdue.
This should allow any network programmer to use <sys/socket.h> as
before.
PR: 19971, 20530
Submitted by: Martin Kaeske <MartinKaeske@lausitz.net>
Mark Andrews <Mark.Andrews@nominum.com>
Patch submitted by: shin
Reviewed by: bde
Diffstat (limited to 'release/fixit.services')
0 files changed, 0 insertions, 0 deletions