summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-12-02 08:45:01 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-12-02 08:45:01 +0100
commitfa5808b15e9dd1665a2960109e6e124812675527 (patch)
tree89fae85dfdee40bc8b27796a0a255d7818d6075a
parent0ece5135fef56dbd0d94957c334655a57adb7212 (diff)
downloadamtterm-fa5808b15e9dd1665a2960109e6e124812675527.tar.gz
Fix build on freebsd
$FreeBSD: comms/amtterm/files/patch-redir-c 300895 2012-07-14 12:56:14Z beat $ From http://people.freebsd.org/~kib/misc/amtterm.1.patch
-rw-r--r--redir.c4
-rw-r--r--tcp.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/redir.c b/redir.c
index 313917b..ceffd5c 100644
--- a/redir.c
+++ b/redir.c
@@ -18,6 +18,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/tcp.c b/tcp.c
index 722abd8..0ee1327 100644
--- a/tcp.c
+++ b/tcp.c
@@ -18,6 +18,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>