better openbsd support

This commit is contained in:
David Carlier
2016-12-11 22:09:34 +00:00
parent 49ba518991
commit f6b6982b01
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