Bug 30248 - sanity check in win32 header failing
Summary: sanity check in win32 header failing
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
: 30035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-17 15:00 UTC by richard.a.hankins
Modified: 2011-05-18 13:00 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
small patch to build 1.4.0 dbus on Windows 7 (1.46 KB, application/octet-stream)
2010-09-17 15:00 UTC, richard.a.hankins
Details

Description richard.a.hankins 2010-09-17 15:00:39 UTC
Created attachment 38775 [details]
small patch to build 1.4.0 dbus on Windows 7

In dbus/dbus-sockets-win.h, a sanity check is failing. The sanity check is checking for the presence of some #define from errno.h that should not be present on windows. However, they do seem to be present when developing on Windows 7.

  #if defined(EPROTONOSUPPORT) || \
      defined(EAFNOSUPPORT) || \
      defined(EWOULDBLOCK)
! #error This does not look like Win32 and the Microsoft C library
  #endif

See http://msdn.microsoft.com/en-us/library/5814770t.aspx.
Attached is a patch where I commented out the sanity check, but it probably requires more investigation and proper removal/fix.
Comment 1 Ralf Habacker 2010-12-13 06:30:37 UTC

*** This bug has been marked as a duplicate of bug 30035 ***
Comment 2 Ralf Habacker 2010-12-21 08:06:24 UTC
*** Bug 30035 has been marked as a duplicate of this bug. ***
Comment 3 Ralf Habacker 2011-05-18 13:00:27 UTC
This bug has been fixed in the commit http://cgit.freedesktop.org/dbus/dbus/commit/?id=b46b4cf3c4a33781297cccd10069626d86e3ac99


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.