aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gnome-system-monitor/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2009-01-10 05:22:13 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2009-01-10 05:22:13 +0000
commit610ae5681637c1051a0c17b54e29d97f53da2f3a (patch)
treec231a1eb74b07e444fa7363012cb84bf23d83ce0 /sysutils/gnome-system-monitor/files
parent15b6544926b07a98710eeb765baf03e3fc9a195c (diff)
Notes
Diffstat (limited to 'sysutils/gnome-system-monitor/files')
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
new file mode 100644
index 000000000000..c00526174921
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
@@ -0,0 +1,14 @@
+--- 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);