[OSKITTCP]

* Fix msvc build. The tcpip driver compiles and links with msvc as a result.

svn path=/trunk/; revision=52296
This commit is contained in:
Amine Khaldi 2011-06-17 09:43:02 +00:00
parent 300b9d5ca1
commit 80771a31cd
2 changed files with 1 additions and 14 deletions

View file

@ -17,21 +17,8 @@ extern void oskittcp_die(const char *file, int line);
#define ovbcopy(src,dst,n) memmove(dst,src,n)
#define bzero(x,y) memset(x,0,y)
#define bcopy(src,dst,n) memcpy(dst,src,n)
#ifdef _MSC_VER
static __inline void panic ( const char* fmt, ... )
{
va_list arg;
va_start(arg, fmt);
printf ( "oskit PANIC: " );
vprintf ( fmt, arg );
va_end(arg);
// TODO FIXME - print stack trace...
oskittcp_die("<unknown file>",-1);
}
#else//_MSC_VER
#define panic(...) do { printf(__VA_ARGS__); \
oskittcp_die(__FILE__,__LINE__); } while(0)
#endif//_MSC_VER
#define kmem_malloc(x,y,z) malloc(y,0,0)
#endif//_OSKITFREEBSD_H

View file

@ -610,7 +610,7 @@ restart:
if ((so->so_state & (SS_ISCONNECTED|SS_ISCONNECTING)) == 0 &&
(so->so_proto->pr_flags & PR_CONNREQUIRED)) {
printf("so: %x\n", so);
__asm__("int3");
__debugbreak();
error = ENOTCONN;
goto release;
}