diff options
author | pav <pav@FreeBSD.org> | 2005-02-18 05:17:22 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-18 05:17:22 +0800 |
commit | b7975920d5ae88c00ba8935750a311b1b62d963a (patch) | |
tree | 2ec9f386adf27c9712806cc40dac9d4dbc4853e8 | |
parent | cad9ee89f286b02ab2ea255ba79d16ed2e5ac6f4 (diff) | |
download | freebsd-ports-gnome-b7975920d5ae88c00ba8935750a311b1b62d963a.tar.gz freebsd-ports-gnome-b7975920d5ae88c00ba8935750a311b1b62d963a.tar.zst freebsd-ports-gnome-b7975920d5ae88c00ba8935750a311b1b62d963a.zip |
- Fix build on 4.x
-rw-r--r-- | deskutils/gdesklets/files/patch-libdesklets-system-gtop.c | 11 | ||||
-rw-r--r-- | deskutils/gdesklets/files/patch-utils::utils.c | 19 |
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"); + |