Fix build with LLVM-MinGW

This commit is contained in:
lufog 2024-05-02 19:36:29 +03:00
parent 11596789e9
commit 7fb9164fc7
9 changed files with 21 additions and 21 deletions

View file

@ -1,5 +1,5 @@
#define CONEV_H
#include <conev.h>
#include "conev.h"
#include <stdlib.h>
#include <string.h>

View file

@ -33,9 +33,9 @@
#endif
#define STR_MODE
#include <params.h>
#include <packets.h>
#include <error.h>
#include "params.h"
#include "packets.h"
#include "error.h"
static inline int get_family(struct sockaddr *dst)

View file

@ -30,7 +30,7 @@
#endif
#endif
inline const int unie(int e)
static inline const int unie(int e)
{
#ifdef _WIN32
switch (e) {

View file

@ -13,9 +13,9 @@
#include <string.h>
#include <proxy.h>
#include <error.h>
#include <params.h>
#include "proxy.h"
#include "error.h"
#include "params.h"
#include <desync.h>
#include <packets.h>

8
main.c
View file

@ -6,10 +6,10 @@
#include <getopt.h>
#include <limits.h>
#include <params.h>
#include <proxy.h>
#include <packets.h>
#include <error.h>
#include "params.h"
#include "proxy.h"
#include "packets.h"
#include "error.h"
#ifndef _WIN32
#include <arpa/inet.h>

View file

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <string.h>
#include <mpool.h>
#include "mpool.h"
static inline int scmp(const struct elem *p, const struct elem *q)

View file

@ -1,5 +1,5 @@
#include <stdio.h>
#include <mpool.h>
#include "mpool.h"
#ifdef _WIN32
#include <ws2tcpip.h>

10
proxy.c
View file

@ -7,11 +7,11 @@
#include <string.h>
#include <signal.h>
#include <proxy.h>
#include <params.h>
#include <conev.h>
#include <extend.h>
#include <error.h>
#include "proxy.h"
#include "params.h"
#include "conev.h"
#include "extend.h"
#include "error.h"
#ifdef _WIN32
#include <winsock2.h>

View file

@ -6,7 +6,7 @@
#include <arpa/inet.h>
#endif
#include <conev.h>
#include "conev.h"
struct sockaddr_ina {
union {