aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deskutils/gdesklets/files/patch-libdesklets-system-gtop.c11
-rw-r--r--deskutils/gdesklets/files/patch-utils::utils.c19
2 files changed, 30 insertions, 0 deletions
diff --git a/deskutils/gdesklets/files/patch-libdesklets-system-gtop.c b/deskutils/gdesklets/files/patch-libdesklets-system-gtop.c
new file mode 100644
index 000000000000..596198212d3a
--- /dev/null
+++ b/deskutils/gdesklets/files/patch-libdesklets-system-gtop.c
@@ -0,0 +1,11 @@
+--- libdesklets/system/gtop.c.orig Sat Jan 1 20:33:47 2005
++++ libdesklets/system/gtop.c Thu Feb 17 21:53:53 2005
+@@ -48,6 +48,8 @@
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+
++/* for INET_ADDRSTRLEN and INET6_ADDRSTRLEN on FreeBSD 4 */
++#include <netinet/in.h>
+
+ typedef struct
+ {
diff --git a/deskutils/gdesklets/files/patch-utils::utils.c b/deskutils/gdesklets/files/patch-utils::utils.c
new file mode 100644
index 000000000000..73980e33cff2
--- /dev/null
+++ b/deskutils/gdesklets/files/patch-utils::utils.c
@@ -0,0 +1,19 @@
+--- utils/utils.c.orig Thu Dec 16 19:02:08 2004
++++ utils/utils.c Thu Feb 17 21:28:55 2005
+@@ -12,14 +12,14 @@
+
+ if(G_UNLIKELY(PyGObject_Type == NULL))
+ {
+- PyObject *module;
++ PyObject *module, *moddict;
+
+ module = PyImport_ImportModule("gobject");
+
+ if(!module)
+ goto err_gobject;
+
+- PyObject *moddict = PyModule_GetDict(module);
++ moddict = PyModule_GetDict(module);
+
+ PyGObject_Type = (PyTypeObject *) PyDict_GetItemString(moddict, "GObject");
+