diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-11-15 23:54:10 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-11-15 23:54:10 +0800 |
commit | 73c1151016c6f7ff9b4d2dc01820a1f4bd96334a (patch) | |
tree | 5d29be39732f035bae05f56258c06041e249bf76 /sysutils/nfsping | |
parent | 4265233d8d6e88e26c82011c6cce6d97fd622ca4 (diff) | |
download | freebsd-ports-gnome-73c1151016c6f7ff9b4d2dc01820a1f4bd96334a.tar.gz freebsd-ports-gnome-73c1151016c6f7ff9b4d2dc01820a1f4bd96334a.tar.zst freebsd-ports-gnome-73c1151016c6f7ff9b4d2dc01820a1f4bd96334a.zip |
Fix build on 10
Diffstat (limited to 'sysutils/nfsping')
-rw-r--r-- | sysutils/nfsping/files/patch-src__nfsping.h | 10 | ||||
-rw-r--r-- | sysutils/nfsping/files/patch-src__util.c | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/sysutils/nfsping/files/patch-src__nfsping.h b/sysutils/nfsping/files/patch-src__nfsping.h new file mode 100644 index 000000000000..edee5eede1e6 --- /dev/null +++ b/sysutils/nfsping/files/patch-src__nfsping.h @@ -0,0 +1,10 @@ +--- ./src/nfsping.h.orig 2013-10-17 23:14:46.000000000 -0500 ++++ ./src/nfsping.h 2013-11-15 09:52:50.587560177 -0600 +@@ -13,6 +13,7 @@ + #include <netinet/in.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <arpa/inet.h> + #include <netdb.h> + #include <unistd.h> + #include <math.h> diff --git a/sysutils/nfsping/files/patch-src__util.c b/sysutils/nfsping/files/patch-src__util.c new file mode 100644 index 000000000000..9fffbee0812f --- /dev/null +++ b/sysutils/nfsping/files/patch-src__util.c @@ -0,0 +1,11 @@ +--- ./src/util.c.orig 2013-11-15 09:53:06.149558492 -0600 ++++ ./src/util.c 2013-11-15 09:53:18.903559033 -0600 +@@ -123,7 +123,7 @@ + if (tmp) { + next->path = strdup(tmp); + /* the root filehandle in hex */ +- if (tmp = strtok(NULL, ":")) { ++ if ((tmp = strtok(NULL, ":"))) { + /* hex takes two characters for each byte */ + fsroot_len = strlen(tmp) / 2; + |