Don't include headers on windows that aren't available

This mainly concerns mingw build.
This commit is contained in:
Aki Koskinen 2015-03-02 11:08:04 +02:00
parent c23002c560
commit a944c6cc40

View File

@ -12,9 +12,6 @@
#include <openssl/x509v3.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "global.h"
#include "posix.h"
@ -23,6 +20,12 @@
#include "netops.h"
#include "git2/transport.h"
#ifndef GIT_WIN32
# include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
#endif
static int ssl_set_error(SSL *ssl, int error)
{
int err;