aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2013-12-13 04:00:58 +0800
committerstephen <stephen@FreeBSD.org>2013-12-13 04:00:58 +0800
commitae0faffe3ea37154c37874b74e1d0212115c4aaf (patch)
treeed03d7869cb1b6838d71febd1f8117a6b27d500d /math
parenta5db08b3979f5d52adbea736f425c19c01826f19 (diff)
downloadfreebsd-ports-gnome-ae0faffe3ea37154c37874b74e1d0212115c4aaf.tar.gz
freebsd-ports-gnome-ae0faffe3ea37154c37874b74e1d0212115c4aaf.tar.zst
freebsd-ports-gnome-ae0faffe3ea37154c37874b74e1d0212115c4aaf.zip
- Fix build with gcc47.
PR: ports/184569 Submitted by: Christoph Moench-Tegeder <cmt@burggraben.net> Reference: ports/183342
Diffstat (limited to 'math')
-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\