mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-04 17:43:45 +00:00
fixed freebsd bugs
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user