summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2012-10-27 11:54:27 +0000
committerratchov <ratchov@openbsd.org>2012-10-27 11:54:27 +0000
commit7ceac65eacb0c2bb862c99e8da947dc3705d3f4c (patch)
treed6491dfc22707c494baa6e74ea50e15369706ee8
parentmark elf architectures as well (diff)
downloadwireguard-openbsd-7ceac65eacb0c2bb862c99e8da947dc3705d3f4c.tar.xz
wireguard-openbsd-7ceac65eacb0c2bb862c99e8da947dc3705d3f4c.zip
include netinet/in.h to get htons & friends prototypes
-rw-r--r--lib/libsndio/sio_aucat.c3
-rw-r--r--usr.bin/aucat/sock.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c
index 8b8e9ae4225..bea40dce087 100644
--- a/lib/libsndio/sio_aucat.c
+++ b/lib/libsndio/sio_aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_aucat.c,v 1.11 2012/09/02 15:57:06 ratchov Exp $ */
+/* $OpenBSD: sio_aucat.c,v 1.12 2012/10/27 11:56:04 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
+#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c
index f42487b7018..3ac08e6e5a4 100644
--- a/usr.bin/aucat/sock.c
+++ b/usr.bin/aucat/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.64 2012/04/11 21:17:32 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.65 2012/10/27 11:54:27 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -17,6 +17,7 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>