Skip to content

Commit

Permalink
Don't include headers on windows that aren't available
Browse files Browse the repository at this point in the history
This mainly concerns mingw build.
  • Loading branch information
akikoskinen authored and tkelman committed May 22, 2015
1 parent fb6df50 commit 9108d13
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/openssl_stream.c
Expand Up @@ -8,9 +8,6 @@
#ifdef GIT_SSL

#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

#include "global.h"
#include "posix.h"
Expand All @@ -19,6 +16,12 @@
#include "netops.h"
#include "git2/transport.h"

#ifndef GIT_WIN32
# include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
#endif

#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/x509v3.h>
Expand Down

0 comments on commit 9108d13

Please sign in to comment.