Bug 10170

Summary: configure check for unistd.h required
Product: dbus Reporter: Ralf Habacker <ralf.habacker>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: add unistd.h configure check
unistd.h patches in source files

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.