Bugzilla – Bug 311472
semaphore.h is not always provided
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by jmmv@hispabsd.org 2002-09-09 10:33:33 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: The file mono/io-layer/semaphores.c includes unconditionally the file <semaphore.h>. This file is not always present in all systems, and therefore, it should be made optional. Specially, it does not exist in NetBSD 1.6H. Making the inclusion optional solves the problem. Note that this will also happen in OpenBSD. Steps to reproduce the problem: 1. Get a NetBSD box. 2. Try to compile semaphores.c. 3. Actual Results: semaphores.c does not compile. Expected Results: How often does this happen? Additional Information: ---- Additional Comments From jmmv@hispabsd.org 2002-09-09 10:34:11 MST ---- Created an attachment (id=164343) Sample solution (configure check + optional inclusion) ---- Additional Comments From dick@ximian.com 2002-09-27 09:52:17 MST ---- Fixed in CVS Imported an attachment (id=164343) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>NetBSD 1.6H (current)</cf_op_sys_details> Unknown operating system other. Setting to default OS "Other".