summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
blob: 7e97b8a494aa44a9007afbfead71fd52bd3a7085 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/openfiles.cpp.orig  2011-08-30 02:46:08.000000000 +0200
+++ src/openfiles.cpp   2011-10-08 00:23:38.000000000 +0200
@@ -71,7 +71,11 @@
         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);