ports/math/octave-forge-parallel/files/patch-pserver.cc
Stephen Montgomery-Smith c101bf5feb - Fix build with gcc47.
PR:		ports/184569
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
Reference:	ports/183342
2013-12-12 20:00:58 +00:00

19 lines
455 B
C++

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