Blob Blame History Raw
diff -up gnome-applets-2.26.1/gweather/gweather-applet.c.network gnome-applets-2.26.1/gweather/gweather-applet.c
--- gnome-applets-2.26.1/gweather/gweather-applet.c.network	2009-04-15 18:53:13.123633124 -0400
+++ gnome-applets-2.26.1/gweather/gweather-applet.c	2009-04-15 18:54:17.438384718 -0400
@@ -17,6 +17,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 #include <gconf/gconf-client.h>
 #include <panel-applet.h>
@@ -552,6 +555,8 @@ state_notify (DBusPendingCall *pending, 
                                            DBUS_TYPE_UINT32, &result,
                                            DBUS_TYPE_INVALID)) {
                         if (result == NM_STATE_CONNECTED) {
+				/* thank you, glibc */
+				res_init ();
 				gweather_update (gw_applet);
                         }
                 }