Merge pull request #141 from devnexen/openbsd_build

better openbsd support
This commit is contained in:
Mark Vejvoda
2017-02-05 13:32:59 -08:00
committed by GitHub
2 changed files with 13 additions and 13 deletions

View File

@@ -319,7 +319,7 @@ string Ip::getString() const{
// class Socket
// ===============================================
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(BSD) || defined(__APPLE__) || defined(__linux__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(BSD) || defined(__APPLE__) || defined(__linux__)
# define USE_GETIFADDRS 1
# include <ifaddrs.h>
#endif