From 73ca870c81145865d5a73c7aa95431c6792d5ec1 Mon Sep 17 00:00:00 2001 From: sambler Date: Tue, 27 Jan 2015 19:31:37 +1030 Subject: fix build on freebsd Add some needed includes Provide freebsd variation of get_executable_path Provide variation of execv so that either full path or appname to be found within $PATH can be used --- drivers/unix/ip_unix.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'drivers/unix/ip_unix.cpp') diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp index 841160f94..ad0d4e00e 100644 --- a/drivers/unix/ip_unix.cpp +++ b/drivers/unix/ip_unix.cpp @@ -50,11 +50,16 @@ #ifdef ANDROID_ENABLED #include "platform/android/ifaddrs_android.h" #else + #ifdef __FreeBSD__ + #include + #endif #include #endif #include #include - + #ifdef __FreeBSD__ + #include + #endif #endif IP_Address IP_Unix::_resolve_hostname(const String& p_hostname) { -- cgit v1.2.3-70-g09d2