1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Fix build with gcc47.

PR:		ports/184569
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
Reference:	ports/183342
This commit is contained in:
Stephen Montgomery-Smith 2013-12-12 20:00:58 +00:00
parent f861d69b29
commit c101bf5feb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336286
4 changed files with 60 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -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>

View File

@ -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\