Commit 5e2264d5 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't include <stdlib.h> (not needed)

or <sys/socket.h> (included from "isc.h").
Check HAVE_STRING_H.
parent 28a25d8b
......@@ -10,19 +10,19 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <netdb.h>
#include <stddef.h>
#include <string.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include <fcntl.h>
#include <sys/file.h>
......@@ -36,13 +36,13 @@
*/
extern void *bzero(void *buf, unsigned length);
/*extern void *memcpy(void *, const void *, int);*/
extern int getsockname(int fd, struct sockaddr *, int *);
extern int getpeername(int fd, struct sockaddr *, int *);
/*extern int getsockname(int fd, struct sockaddr *, int *);*/
/*extern int getpeername(int fd, struct sockaddr *, int *);*/
extern time_t time(time_t *buf);
extern int select(int setsize,
/*extern int select(int setsize,
fd_set *rs, fd_set *rw, fd_set *es,
struct timeval *wait);
extern int accept(int fd, struct sockaddr *sock, int *len);
struct timeval *wait);*/
/*extern int accept(int fd, struct sockaddr *sock, int *len);*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment