summaryrefslogtreecommitdiff
path: root/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
blob: 6a1798386840b6f0e6c1dcf92b87bcf62c804870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/openfiles.cpp.orig	2023-09-02 21:02:13 UTC
+++ src/openfiles.cpp
@@ -79,7 +79,11 @@ friendlier_hostname (const char *addr_str,
     goto failsafe;
 
   if (getnameinfo (res->ai_addr, res->ai_addrlen, hostname,
+#ifdef NI_IDM
                    sizeof hostname, service, sizeof service, NI_IDN))
+#else
+                   sizeof hostname, service, sizeof service, 0))
+#endif
     goto failsafe;
 
   if (res)