Bug 10170 - configure check for unistd.h required
Summary: configure check for unistd.h required
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-03 03:02 UTC by Ralf Habacker
Modified: 2007-03-06 11:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
add unistd.h configure check (380 bytes, patch)
2007-03-03 03:02 UTC, Ralf Habacker
Details | Splinter Review
unistd.h patches in source files (906 bytes, patch)
2007-03-03 03:06 UTC, Ralf Habacker
Details | Splinter Review

Description Ralf Habacker 2007-03-03 03:02:02 UTC
On windows unistd.h isn't available on some compiler, which requires to wrap related source code with #ifdef HAVE_UNISTD_H ... #endif

To prevent compile problems on unix configure.in should have check for unistd.h
Comment 1 Ralf Habacker 2007-03-03 03:02:54 UTC
Created attachment 8958 [details] [review]
add unistd.h configure check
Comment 2 Ralf Habacker 2007-03-03 03:06:14 UTC
Created attachment 8959 [details] [review]
unistd.h patches in source files
Comment 3 Havoc Pennington 2007-03-03 09:02:17 UTC
shouldn't test-sleep-forever use HAVE_UNISTD_H instead of #ifndef DBUS_WIN?

I would also just unconditionally include stdlib.h in there.
Comment 4 Ralf Habacker 2007-03-06 11:15:56 UTC
done


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.