Fix socket includes

This commit is contained in:
Lassi Kortela 2019-08-21 22:14:04 +03:00
parent ebefb2a519
commit 0d95c386ac
3 changed files with 7 additions and 12 deletions

View File

@ -2,6 +2,8 @@
#include <sys/stat.h>
#include <windows.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
@ -13,13 +15,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dtypes.h"
#include "utils.h"
#include "utf8.h"
#include "ios.h"
#include "socket.h"
#include "timefuncs.h"
#include "hashing.h"
#include "htable.h"

View File

@ -1,10 +1,15 @@
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,13 +1,3 @@
#ifdef _WIN32
#include <winsock2.h>
#else
#include <netinet/in.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#endif
#ifndef _WIN32
void closesocket(int fd);
#endif