diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-23 02:50:20 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-23 02:50:20 +0800 |
commit | 8be1c0e9868a113946e71bb9d24982f2d633e7e7 (patch) | |
tree | 051ebb11f129033bc9e580d3b56a83173df1ab68 /sysutils | |
parent | a45186f7b381bc56a05cde3f687d768b1c92f454 (diff) | |
download | marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar.gz marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar.bz2 marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar.lz marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar.xz marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.tar.zst marcuscom-ports-8be1c0e9868a113946e71bb9d24982f2d633e7e7.zip |
Fix build on 6.1 and earlier.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8107 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp index 3732177fd..7e9921655 100644 --- a/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp +++ b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp @@ -1,10 +1,22 @@ ---- src/openfiles.cpp.orig Mon Apr 11 03:50:49 2005 -+++ src/openfiles.cpp Mon Apr 11 03:52:13 2005 -@@ -8,6 +8,7 @@ +--- openfiles.cpp.orig Thu Dec 14 17:49:02 2006 ++++ openfiles.cpp Fri Dec 22 13:49:23 2006 +@@ -6,6 +6,7 @@ #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> +#include <netinet/in.h> #include <arpa/inet.h> + #include "procman.h" - #include "openfiles.h" +@@ -53,7 +54,11 @@ friendlier_hostname(const char *dotted_q + goto failsafe; + + ++#if defined(__FreeBSD__) && __FreeBSD_version < 601103 ++ host = gethostbyaddr((char *) &addr4, sizeof addr4, AF_INET); ++#else + host = gethostbyaddr(&addr4, sizeof addr4, AF_INET); ++#endif + + if(!host) + goto failsafe; |