diff --git a/src/hx/Date.cpp b/src/hx/Date.cpp index cdc665b34..79d4f0d70 100644 --- a/src/hx/Date.cpp +++ b/src/hx/Date.cpp @@ -20,8 +20,8 @@ #endif #if defined(__ORBIS__) // fill in for a missing localtime_r with localtime_s - #define localtime_r localtime_s - #define gmtime_r gmtime_s + //#define localtime_r localtime_s + //#define gmtime_r gmtime_s #endif #endif diff --git a/src/hx/libs/std/Process.cpp b/src/hx/libs/std/Process.cpp index d9f020e1c..f4fe5c15b 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(__ORBIS__) # include # elif !defined(NEKO_MAC) # include diff --git a/src/hx/libs/std/Socket.cpp b/src/hx/libs/std/Socket.cpp index 1417e7b5e..12bde9602 100644 --- a/src/hx/libs/std/Socket.cpp +++ b/src/hx/libs/std/Socket.cpp @@ -363,7 +363,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(__ORBIS__) h = gethostbyname(host.utf8_str(&hostBuf)); # else struct hostent hbase; @@ -501,7 +501,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(__ORBIS__) h = gethostbyaddr((char *)&ip,4,AF_INET); #else struct hostent htmp; @@ -522,7 +522,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(__ORBIS__) 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..f759b6c61 100644 --- a/src/hx/libs/std/Sys.cpp +++ b/src/hx/libs/std/Sys.cpp @@ -56,6 +56,10 @@ #include #endif +#ifdef __ORBIS__ + #include +#endif + #ifndef CLK_TCK #define CLK_TCK 100 #endif @@ -157,7 +161,7 @@ bool _hx_std_set_time_locale( String l ) return false; #else -#ifdef NEKO_POSIX +#if defined(NEKO_POSIX) && !defined(__ORBIS__) locale_t lc, old; lc = newlocale(LC_TIME_MASK,l.utf8_str(),NULL); if( !lc ) @@ -845,18 +849,19 @@ Array _hx_std_sys_env() #ifdef HX_ANDROID #define tcsetattr(fd,opt,s) ioctl(fd,opt,s) #define tcgetattr(fd,s) ioctl(fd,TCGETS,s) +#endif - static __inline__ void inline_cfmakeraw(struct termios *s) - { +#if defined(HX_ANDROID) || defined(__ORBIS__) + static __inline__ void inline_cfmakeraw(struct termios *s) + { s->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); s->c_oflag &= ~OPOST; s->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); s->c_cflag &= ~(CSIZE|PARENB); s->c_cflag |= CS8; - } - - #define cfmakeraw inline_cfmakeraw + } + #define cfmakeraw inline_cfmakeraw #endif /** diff --git a/toolchain/prospero-toolchain.xml b/toolchain/prospero-toolchain.xml new file mode 100644 index 000000000..496836bca --- /dev/null +++ b/toolchain/prospero-toolchain.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file