Fixed err.h errors

This commit is contained in:
frekky 2015-11-16 21:59:01 +08:00
parent 4c8732f0ca
commit 03909ad59b
3 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <zlib.h> #include <zlib.h>
#include <err.h>
#include <ctype.h> #include <ctype.h>
#include "common.h" #include "common.h"
@ -55,6 +54,8 @@
#ifdef WINDOWS32 #ifdef WINDOWS32
WORD req_version = MAKEWORD(2, 2); WORD req_version = MAKEWORD(2, 2);
WSADATA wsa_data; WSADATA wsa_data;
#else
#include <err.h>
#endif #endif
/* Global server variables */ /* Global server variables */

View File

@ -19,7 +19,9 @@
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>
#include <stdio.h> #include <stdio.h>
#ifndef WINDOWS32
#include <err.h> #include <err.h>
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -20,6 +20,7 @@
typedef unsigned int in_addr_t; typedef unsigned int in_addr_t;
#include <stdlib.h>
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>
#include <windns.h> #include <windns.h>