1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-04 17:43:45 +00:00

fixed freebsd bugs

This commit is contained in:
Bryan Roe
2019-06-20 16:48:38 -07:00
parent 2d59578c21
commit 604e853354

View File

@@ -63,7 +63,7 @@ limitations under the License.
#include <time.h>
#ifdef __APPLE__
#if defined(__APPLE__) || defined (_FREEBSD)
#include <ifaddrs.h>
#include <sys/sysctl.h>
#endif
@@ -410,7 +410,7 @@ int ILibGetLocalIPv4AddressList(struct sockaddr_in** addresslist, int includeloo
}
closesocket(sock);
return j;
#elif __APPLE__
#elif defined(__APPLE__) || defined(_FREEBSD)
//
// Enumerate local interfaces
//