Date: Fri, 29 Sep 2000 03:05:19 -0700 (PDT) From: toga@puyo.org To: freebsd-gnats-submit@FreeBSD.org Subject: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h Message-ID: <20000929100519.1F33637B423@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <sys/cdefs.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000929100519.1F33637B423>