From owner-freebsd-bugs Sun Jul 16 10:20: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5787B37BE87 for ; Sun, 16 Jul 2000 10:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA55011; Sun, 16 Jul 2000 10:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from yavin.hub.net (ppp145.envia-tel.de [193.98.113.145]) by hub.freebsd.org (Postfix) with ESMTP id 0EA6537B719 for ; Sun, 16 Jul 2000 10:13:13 -0700 (PDT) (envelope-from martin@yavin.hub.net) Received: (from martin@localhost) by yavin.hub.net (8.9.3/8.9.3) id TAA15779; Sun, 16 Jul 2000 19:19:55 +0200 (CEST) (envelope-from martin) Message-Id: <200007161719.TAA15779@yavin.hub.net> Date: Sun, 16 Jul 2000 19:19:55 +0200 (CEST) From: MartinKaeske@lausitz.net Reply-To: MartinKaeske@lausitz.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/19971: bug in /usr/include/sys/socket.h Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 ( 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 in socket.h to use the ALIGN-macro of param.h. Or tell all the guys using socket.h-functions to include first. I prefer providing socket.h with an own macro, for example the one from >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message