From owner-freebsd-bugs Fri Sep 29 3:14:39 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1B8E837B50C for ; Fri, 29 Sep 2000 03:10:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA44571; Fri, 29 Sep 2000 03:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 1F33637B423; Fri, 29 Sep 2000 03:05:19 -0700 (PDT) Message-Id: <20000929100519.1F33637B423@hub.freebsd.org> Date: Fri, 29 Sep 2000 03:05:19 -0700 (PDT) From: toga@puyo.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21644 >Category: misc >Synopsis: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 29 03:10:04 PDT 2000 >Closed-Date: >Last-Modified: >Originator: TOGAWA Satoshi >Release: 4-STABLE >Organization: PUYO Online Reactionary Group >Environment: FreeBSD cel.sd.puyo.org 4.1.1-STABLE FreeBSD 4.1.1-STABLE #7: Thu Sep 28 00:57:42 JST 2000 root@:/usr/src/sys/compile/CEL i386 >Description: In /usr/include/sys/mman.h , line 134 int shm_open __P((const char *, int, mode_t)); but type "mode_t" is defined in /usr/include/sys/types.h. And mman.h don't include types.h. So using mman.h, without including types.h, causes compile error. I hope that mman.h includes types.h. >How-To-Repeat: Including /usr/include/sys/mman.h , without including /usr/include/sys/types.h in above. >Fix: *** /usr/include/sys/mman.h Thu Jul 27 12:06:39 2000 --- ./mman.h Fri Sep 29 18:59:47 2000 *************** *** 129,134 **** --- 129,135 ---- __BEGIN_DECLS #ifdef _P1003_1B_VISIBLE + #include int mlockall __P((int)); int munlockall __P((void)); int shm_open __P((const char *, int, mode_t)); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message