Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2000 19:19:55 +0200 (CEST)
From:      MartinKaeske@lausitz.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/19971: bug in /usr/include/sys/socket.h
Message-ID:  <200007161719.TAA15779@yavin.hub.net>

next in thread | raw e-mail | index | archive | help


>Number:         19971
>Category:       misc
>Synopsis:       bug in /usr/include/sys/socket.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 16 10:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kaeske
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
>Environment:

      i386

>Description:

 	/usr/include/sys/socket.h uses a macro called ALIGN (used by CMSG_DATA)
	but never defines one nor an additional header is included 
	(<machine/param.h> has an ALIGN-macro).
	This circumstance causes the compiler to assume ALIGN is a function
	and the linker to fail.

>How-To-Repeat:

	I hope the description makes it obvious :-)
>Fix:

	Either give socket.h an own ALIGN-macro or include <machine/param.h> in
	socket.h to use the ALIGN-macro of param.h. Or tell all the guys
	using socket.h-functions to include <machine/param.h> first.
	I prefer providing socket.h with an own macro, for example the one
	from <machine/param.h> 

>Release-Note:
>Audit-Trail:
>Unformatted:


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




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