Bug 23586

Summary: [c++] fix build on GNU/kFreeBSD
Product: dbus Reporter: Robert Millan <rmh>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED NOTOURBUG QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium Keywords: janitor, patch
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: use xgethostname()

Description Robert Millan 2009-08-28 18:42:17 UTC
Created attachment 28994 [details] [review]
use xgethostname()

dbus-c++ fails to build on GNU/kFreeBSD (and probably FreeBSD as well) due to unconditional use of HOST_NAME_MAX.

Attached patch resolves the problem by removing the need for max hostname length assumption.  Instead of using gethostname(), one just needs to use xgethostname().

More details are available at http://bugs.debian.org/542887
Comment 1 Robert Millan 2009-08-28 18:43:19 UTC
Note xgethostname.c is obtained from Gnulib (http://www.gnu.org/software/gnulib/)
Comment 2 Simon McVittie 2011-01-06 09:54:02 UTC
dbus-c++ <http://sourceforge.net/projects/dbus-cplusplus/> has its own bug
tracker and is no longer hosted here. Please open a bug over there.

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.