From owner-freebsd-bugs Tue Jan 30 15:30:21 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 706ED37B6D7 for ; Tue, 30 Jan 2001 15:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0UNU2q60386; Tue, 30 Jan 2001 15:30:02 -0800 (PST) (envelope-from gnats) Received: from dataloss.net (massive.dataloss.net [212.189.232.193]) by hub.freebsd.org (Postfix) with SMTP id AE18737B6D6 for ; Tue, 30 Jan 2001 15:26:32 -0800 (PST) Received: (qmail 7240 invoked by uid 1000); 30 Jan 2001 23:19:42 -0000 Message-Id: <20010130231942.7239.qmail@massive.dataloss.net> Date: 30 Jan 2001 23:19:42 -0000 From: peter@dataloss.net Reply-To: peter@dataloss.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/24744: sys/socket.h depends on sys/types.h without including it Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24744 >Category: misc >Synopsis: sys/socket.h uses u_char without including sys/types.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 30 15:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Peter van Dijk >Release: FreeBSD 4.2-STABLE i386 >Organization: - >Environment: RELENG_4, cvsupped and world'ed dec 16th 2000. >Description: sys/socket.h contains, amongst others, the line: typedef u_char sa_family_t; u_char is defined in sys/types.h, but sys/socket.h doesn't include it >How-To-Repeat: #include #include void main(void) { } Swapping the two include lines around makes it compile fine. >Fix: Include sys/types.h from sys/socket.h >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message