- Get oskittcp to compile on msvc.

svn path=/trunk/; revision=20655
This commit is contained in:
Alex Ionescu
2006-01-07 07:33:08 +00:00
parent 31334bb80f
commit edd15921f7
5 changed files with 4 additions and 11 deletions
@@ -177,7 +177,7 @@ extern unsigned tty_imask; /* group of interrupts masked with spltty() */
static int splhigh() { return 0; }
static int splimp() { return 0; }
static int splnet() { return 0; }
static int splx() { return 0; }
static int splx(x) { return 0; }
static int splclock() { return 0; }
#elif defined(__GNUC__)
@@ -62,9 +62,4 @@ u_long random __P((void));
char *rindex __P((const char *, int));
int scanc __P((u_int, u_char *, u_char *, int));
int skpc __P((int, int, char *));
char *strcat __P((char *, const char *));
int strcmp __P((const char *, const char *));
char *strcpy __P((char *, const char *));
size_t strlen __P((const char *));
int strncmp __P((const char *, const char *, size_t));
char *strncpy __P((char *, const char *, size_t));
@@ -114,7 +114,7 @@ int ureadc __P((int, struct uio *));
void *hashinit __P((int count, int type, u_long *hashmask));
void *phashinit __P((int count, int type, u_long *nentries));
__dead void panic __P((const char *, ...)) __dead2;
//__dead void panic __P((const char *, ...)) __dead2;
__dead void boot __P((int)) __dead2;
void tablefull __P((const char *));
void addlog __P((const char *, ...));
@@ -126,7 +126,7 @@ void printf __P((const char *, ...));
#include <oskitdebug.h>
int __cdecl vprintf(const char *, va_list);
//int __cdecl vprintf(const char *, va_list);
#define log bsd_log
static __inline int bsd_log ( int blah, const char* fmt, ... )
@@ -12,7 +12,6 @@ extern void oskittcp_die(const char *file, int line);
#define printf DbgPrint
#define vprintf DbgVPrint
#define ovbcopy(x,y,z) bcopy(x,y,z)
void *memset( void *dest, int c, size_t count );
#define bzero(x,y) memset(x,0,y)
#define bcopy(src,dst,n) memcpy(dst,src,n)
#ifdef _MSC_VER
@@ -30,7 +30,6 @@ unsigned volatile ipending;
struct timeval boottime;
void clock_init();
int isprint(int c);
int _snprintf(char * buf, size_t cnt, const char *fmt, ...);
void *fbsd_malloc( unsigned int bytes, char *file, unsigned line, ... ) {