freebsd-ports/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
Joe Marcus Clarke 610ae56816 Presenting GNOME 2.24 for FreeBSD.
See http://library.gnome.org/misc/release-notes/2.24/ for the general
release notes.  On the FreeBSD front, this release introduces Fuse support
in HAL, adds multi-CPU support to libgtop, WebKit updates, and fixes some
long-standing seahorse and gnome-keyring bugs.  The documentation updates
to the website are forthcoming.

This release features commits by adamw, ahze, kwm, mezz, and myself.  It would
not have been possible without are contributors and testers:

Alexander Loginov
Craig Butler [1]
Dmitry Marakasov [6]
Eric L. Chen
Joseph S. Atkinson
Kris Moore
Lapo Luchini [7]
Nikos Ntarmos
Pawel Worach
Romain Tartiere
TAOKA Fumiyoshi [3]
Yasuda Keisuke
Zyl
aZ [4]
bf [2] [5]
Florent Thoumie
Peter Wemm
pluknet

PR:		125857 [1]
		126993 [2]
		130031 [3]
		127399 [4]
		127661 [5]
		124302 [6]
		129570 [7]
		129936
		123790
2009-01-10 05:22:13 +00:00

14 lines
449 B
C++

--- src/openfiles.cpp.orig 2008-05-27 16:16:46.000000000 -0400
+++ src/openfiles.cpp 2008-05-27 16:19:53.000000000 -0400
@@ -66,7 +66,11 @@ friendlier_hostname(const char *addr_str
goto failsafe;
if (getnameinfo(res->ai_addr, res->ai_addrlen, hostname,
+#ifdef NI_IDN
sizeof hostname, service, sizeof service, NI_IDN))
+#else
+ sizeof hostname, service, sizeof service, 0))
+#endif
goto failsafe;
if (res) freeaddrinfo(res);