Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37855381
en ru br
ALT Linux repos
S:1.26.3-alt1

Group :: Graphical desktop/MATE
RPM: mate-panel

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: clock-network.patch
Download


diff -up mate-panel-1.1.1/applets/clock/clock-location.c.network mate-panel-1.1.1/applets/clock/clock-location.c
--- mate-panel-1.1.1/applets/clock/clock-location.c.network	2009-04-15 17:28:26.760634154 -0400
+++ mate-panel-1.1.1/applets/clock/clock-location.c	2009-04-15 17:43:41.869383882 -0400
@@ -12,6 +12,9 @@
 #include <time.h>
 #include <unistd.h>
 #include <math.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 #include <glib.h>
 #include <gio/gio.h>
@@ -695,6 +698,8 @@ state_notify (DBusPendingCall *pending, 
 					   DBUS_TYPE_UINT32, &result,
 					   DBUS_TYPE_INVALID)) {
 			if (result == NM_STATE_CONNECTED) {
+				/* thank you, glibc */
+				res_init ();
 				update_weather_infos ();
 			}
 		}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin