mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 18:17:54 +00:00
Don't include headers on windows that aren't available
This mainly concerns mingw build.
This commit is contained in:
parent
c23002c560
commit
a944c6cc40
@ -12,9 +12,6 @@
|
|||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "posix.h"
|
#include "posix.h"
|
||||||
@ -23,6 +20,12 @@
|
|||||||
#include "netops.h"
|
#include "netops.h"
|
||||||
#include "git2/transport.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)
|
static int ssl_set_error(SSL *ssl, int error)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
Loading…
Reference in New Issue
Block a user