[oskittcp]

-Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50706
This commit is contained in:
Giannis Adamopoulos 2011-02-15 15:54:42 +00:00
parent 73d18c6855
commit 53313b61be
2 changed files with 6 additions and 1 deletions

View file

@ -194,7 +194,11 @@ int bcmp(const void *b1, const void *b2, size_t len)
return RtlCompareMemory(b1, b2, len);
}
#ifndef _MSC_VER
int memcmp(const void *b1, const void *b2, size_t len)
{
return RtlCompareMemory(b1, b2, len);
}
#endif

View file

@ -129,9 +129,10 @@ int OskitTCPSocket( void *context,
int proto )
{
struct socket *so;
int error ;
OSKLock();
int error = socreate(domain, &so, type, proto);
error = socreate(domain, &so, type, proto);
if( !error ) {
so->so_connection = context;
InitializeSocketFlags(so);