diff --git a/moo/lib/exec.c b/moo/lib/exec.c index e545de2..542cd71 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -119,6 +119,8 @@ static MOO_INLINE const char* proc_state_to_string (int state) #if defined(__DOS__) && (defined(_INTELC32_) || (defined(__WATCOMC__) && (__WATCOMC__ <= 1000))) /* the old intel c code builder doesn't support __FUNCTION__ */ # define __PRIMITIVE_NAME__ "<>" +#elif defined(_SCO_DS) +# define __PRIMITIVE_NAME__ "<>" #else # define __PRIMITIVE_NAME__ (&__FUNCTION__[0]) #endif diff --git a/moo/mod/_sck.h b/moo/mod/_sck.h index f2c4aab..9c4c735 100644 --- a/moo/mod/_sck.h +++ b/moo/mod/_sck.h @@ -71,7 +71,9 @@ struct sck_t typedef moo_uint64_t sck_len_t; #endif #else -# error UNSUPPORT sck_len_t size +# define MOO_SIZEOF_SOCKLEN_T MOO_SIZEOF_INT +# define MOO_SOCKLEN_T_IS_SIGNED + typedef int sck_len_t; #endif #if (MOO_SIZEOF_SA_FAMILY_T == 1) @@ -99,7 +101,9 @@ struct sck_t typedef moo_uint64_t sck_addr_family_t; #endif #else -# error UNSUPPORT sck_addr_family_t size +# define MOO_SIZEOF_SA_FAMILY_T MOO_SIZEOF_INT +# define MOO_SA_FAMILY_T_IS_SIGNED + typedef int sck_addr_family_t; #endif struct sck_addr_t