Bug 311472 (MONO30053) - semaphore.h is not always provided
Summary: semaphore.h is not always provided
Status: RESOLVED FIXED
Alias: MONO30053
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2002-09-09 17:33 UTC by Julio Merino
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Sample solution (configure check + optional inclusion) (993 bytes, patch)
2002-09-09 17:34 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:00:57 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".