aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
blob: c0052617492120eae79b97a71933efb2fa6271d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);