summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--toxcore/tox.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e97da02e..283a38d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -230,7 +230,7 @@ case $host_os in
230 *solaris*) 230 *solaris*)
231 LIBS="$LIBS -lssp -lsocket -lnsl" 231 LIBS="$LIBS -lssp -lsocket -lnsl"
232 ;; 232 ;;
233 *freebsd*) 233 *freebsd*|*openbsd*)
234 LDFLAGS="$LDFLAGS -L/usr/local/lib" 234 LDFLAGS="$LDFLAGS -L/usr/local/lib"
235 CFLAGS="$CFLAGS -I/usr/local/include" 235 CFLAGS="$CFLAGS -I/usr/local/include"
236 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 236 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
diff --git a/toxcore/tox.h b/toxcore/tox.h
index dfb5ecd1..d94c0e13 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -46,6 +46,9 @@
46#else 46#else
47 47
48#include <sys/types.h> 48#include <sys/types.h>
49#ifdef __OpenBSD__
50#include <netinet/in_systm.h>
51#endif
49#include <netinet/in.h> 52#include <netinet/in.h>
50#include <netinet/ip.h> 53#include <netinet/ip.h>
51 54