Author: gadamopoulos
Date: Tue Feb 15 15:54:42 2011
New Revision: 50706
URL:
http://svn.reactos.org/svn/reactos?rev=50706&view=rev
Log:
[oskittcp]
-Fix compilation with msc
Modified:
branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/defaults.c
branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/interface.c
Modified: branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/defaults.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/drivers/oskit…
==============================================================================
--- branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/defaults.c [iso-8859-1]
(original)
+++ branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/defaults.c [iso-8859-1] Tue Feb
15 15:54:42 2011
@@ -194,7 +194,11 @@
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
Modified: branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/interface.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/drivers/oskit…
==============================================================================
--- branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/interface.c [iso-8859-1]
(original)
+++ branches/cmake-bringup/lib/drivers/oskittcp/oskittcp/interface.c [iso-8859-1] Tue Feb
15 15:54:42 2011
@@ -129,9 +129,10 @@
int proto )
{
struct socket *so;
-
- OSKLock();
- int error = socreate(domain, &so, type, proto);
+ int error ;
+
+ OSKLock();
+ error = socreate(domain, &so, type, proto);
if( !error ) {
so->so_connection = context;
InitializeSocketFlags(so);