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 *solaris*) LIBS="$LIBS -lssp -lsocket -lnsl" ;; - *freebsd*) + *freebsd*|*openbsd*) LDFLAGS="$LDFLAGS -L/usr/local/lib" CFLAGS="$CFLAGS -I/usr/local/include" 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 @@ #else #include +#ifdef __OpenBSD__ +#include +#endif #include #include