Bug 23586 - [c++] fix build on GNU/kFreeBSD
Summary: [c++] fix build on GNU/kFreeBSD
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
Keywords: janitor, patch
Depends on:
Reported: 2009-08-28 18:42 UTC by Robert Millan
Modified: 2011-01-06 09:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

use xgethostname() (4.10 KB, patch)
2009-08-28 18:42 UTC, Robert Millan
Details | Splinter Review

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.