aboutsummaryrefslogtreecommitdiff
path: root/math/octave-forge-parallel
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2013-12-12 20:00:58 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2013-12-12 20:00:58 +0000
commitc101bf5feb916a7bbf265df9ddbba299228db3f6 (patch)
treeed03d7869cb1b6838d71febd1f8117a6b27d500d /math/octave-forge-parallel
parentf861d69b29d0b9377a0a7e371a3ed58c43bc244c (diff)
downloadports-c101bf5feb916a7bbf265df9ddbba299228db3f6.tar.gz
ports-c101bf5feb916a7bbf265df9ddbba299228db3f6.zip
- Fix build with gcc47.
PR: ports/184569 Submitted by: Christoph Moench-Tegeder <cmt@burggraben.net> Reference: ports/183342
Notes
Notes: svn path=/head/; revision=336286
Diffstat (limited to 'math/octave-forge-parallel')
-rw-r--r--math/octave-forge-parallel/files/patch-connect.cc12
-rw-r--r--math/octave-forge-parallel/files/patch-pserver.cc19
-rw-r--r--math/octave-forge-parallel/files/patch-recv.c14
-rw-r--r--math/octave-forge-parallel/files/patch-send.cc15
4 files changed, 60 insertions, 0 deletions
diff --git a/math/octave-forge-parallel/files/patch-connect.cc b/math/octave-forge-parallel/files/patch-connect.cc
new file mode 100644
index 000000000000..f315a1180a6b
--- /dev/null
+++ b/math/octave-forge-parallel/files/patch-connect.cc
@@ -0,0 +1,12 @@
+--- connect.cc.orig 2013-11-16 22:26:59.000000000 +0100
++++ connect.cc 2013-11-16 22:27:54.000000000 +0100
+@@ -25,7 +25,9 @@
+ #include <octave/oct.h>
+ #include <oct-env.h>
+
++#include <sys/types.h>
+ #include <sys/socket.h>
++#include <unistd.h>
+ #include <errno.h>
+ #include <netdb.h>
+ #include <netinet/in.h> // reported necessary for FreeBSD-8
diff --git a/math/octave-forge-parallel/files/patch-pserver.cc b/math/octave-forge-parallel/files/patch-pserver.cc
new file mode 100644
index 000000000000..6edcb666cc0f
--- /dev/null
+++ b/math/octave-forge-parallel/files/patch-pserver.cc
@@ -0,0 +1,19 @@
+--- pserver.cc.orig 2013-11-16 22:30:37.000000000 +0100
++++ pserver.cc 2013-11-16 22:31:47.000000000 +0100
+@@ -27,6 +27,7 @@
+ #include <cmd-edit.h>
+ #include <toplev.h>
+
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <iostream>
+ #include <sys/stat.h>
+@@ -34,6 +35,8 @@
+ #include <errno.h>
+ #include <netdb.h>
+ #include <netinet/in.h> // reported necessary for FreeBSD-8
++#include <unistd.h>
++#include <stdlib.h>
+
+ #include "sock-stream.h"
+
diff --git a/math/octave-forge-parallel/files/patch-recv.c b/math/octave-forge-parallel/files/patch-recv.c
new file mode 100644
index 000000000000..b3ee1a91e0b9
--- /dev/null
+++ b/math/octave-forge-parallel/files/patch-recv.c
@@ -0,0 +1,14 @@
+--- recv.cc.orig 2013-11-16 22:29:55.000000000 +0100
++++ recv.cc 2013-11-16 22:30:24.000000000 +0100
+@@ -22,9 +22,11 @@
+ #include <octave/oct-stream.h>
+ #include <octave/oct-map.h>
+
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/poll.h>
+ #include <netinet/in.h>
++#include <unistd.h>
+ #include <netdb.h>
+
+
diff --git a/math/octave-forge-parallel/files/patch-send.cc b/math/octave-forge-parallel/files/patch-send.cc
new file mode 100644
index 000000000000..b4d97e3a850b
--- /dev/null
+++ b/math/octave-forge-parallel/files/patch-send.cc
@@ -0,0 +1,15 @@
+--- send.cc.orig 2013-11-16 22:35:29.000000000 +0100
++++ send.cc 2013-11-16 22:35:56.000000000 +0100
+@@ -21,10 +21,12 @@
+ #include <octave/ls-oct-binary.h>
+ #include <octave/oct-stream.h>
+
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/poll.h>
+ #include <netinet/in.h>
+ #include <netdb.h>
++#include <unistd.h>
+
+
+ DEFUN_DLD (send, args, , "send (X, sockets)\n\