Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Nov 2000 08:59:25 -0800 (PST)
From:      Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/alpha/include param.h src/sys/i386/include param.h src/sys/sys socket.h
Message-ID:  <200011081659.IAA56342@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
asmodai     2000/11/08 08:59:25 PST

  Modified files:
    sys/alpha/include    param.h 
    sys/i386/include     param.h 
    sys/sys              socket.h 
  Log:
  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
  
  Revision  Changes    Path
  1.23      +38 -18    src/sys/alpha/include/param.h
  1.59      +26 -14    src/sys/i386/include/param.h
  1.45      +15 -7     src/sys/sys/socket.h



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




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