Portability fixes: don't declare library functions, include

appropriate headers.  Also remove some unused declarations.
This commit is contained in:
Markus Armbruster 2004-01-15 13:43:50 +00:00
parent 56dce5a8c4
commit 4ce5f988d0
13 changed files with 19 additions and 156 deletions

View file

@ -36,17 +36,16 @@
#include "ioqueue.h"
#include <stdio.h>
#include <stdlib.h>
#if !defined(_WIN32)
#include <unistd.h>
#endif
#ifdef _WIN32
#include <malloc.h>
#include <winsock.h>
#endif
void free();
void ioq_write();
int
@ -54,11 +53,6 @@ serverio(s, ioq)
int s;
struct ioqueue *ioq;
{
#ifndef _WIN32
extern s_char *realloc();
#else
extern void *realloc();
#endif
s_char *buf;
int n;