diff --git a/src/hx/libs/std/Process.cpp b/src/hx/libs/std/Process.cpp index 3f395178f..498dbfacf 100644 --- a/src/hx/libs/std/Process.cpp +++ b/src/hx/libs/std/Process.cpp @@ -11,7 +11,7 @@ # include # include # include -# if defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) +# if defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) || defined(NEKO_BSD) # include # elif !defined(NEKO_MAC) # include diff --git a/src/hx/libs/std/Socket.cpp b/src/hx/libs/std/Socket.cpp index edef5fdea..8cbb6788d 100644 --- a/src/hx/libs/std/Socket.cpp +++ b/src/hx/libs/std/Socket.cpp @@ -384,7 +384,7 @@ int _hx_std_host_resolve( String host ) struct hostent *h = 0; hx::strbuf hostBuf; -# if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(BLACKBERRY) || defined(EMSCRIPTEN) +# if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(BLACKBERRY) || defined(EMSCRIPTEN) || defined(NEKO_BSD) h = gethostbyname(host.utf8_str(&hostBuf)); # else struct hostent hbase; @@ -522,7 +522,7 @@ String _hx_std_host_reverse( int host ) struct hostent *h = 0; unsigned int ip = host; hx::EnterGCFreeZone(); - #if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) + #if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) || defined(NEKO_BSD) h = gethostbyaddr((char *)&ip,4,AF_INET); #else struct hostent htmp; @@ -543,7 +543,7 @@ String _hx_std_host_reverse_ipv6( Array host ) struct hostent *h = 0; hx::EnterGCFreeZone(); - #if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) + #if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(ANDROID) || defined(BLACKBERRY) || defined(EMSCRIPTEN) || defined(NEKO_BSD) h = gethostbyaddr((char *)&host[0],16,AF_INET6); #else struct hostent htmp; diff --git a/src/hx/libs/std/Sys.cpp b/src/hx/libs/std/Sys.cpp index 371addf93..d522429c5 100644 --- a/src/hx/libs/std/Sys.cpp +++ b/src/hx/libs/std/Sys.cpp @@ -30,7 +30,7 @@ #include #ifndef ANDROID #include - #if !defined(BLACKBERRY) && !defined(EPPC) && !defined(GCW0) && !defined(__GLIBC__) + #if !defined(BLACKBERRY) && !defined(EPPC) && !defined(GCW0) && !defined(__GLIBC__) && !defined(NEKO_BSD) #include #endif #endif @@ -52,7 +52,7 @@ #include #endif -#ifdef HX_ANDROID +#if defined(HX_ANDROID) || defined(NEKO_BSD) #include #endif