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 #define CONEV_H
#include <conev.h> #include "conev.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

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

View File

@ -30,7 +30,7 @@
#endif #endif
#endif #endif
inline const int unie(int e) static inline const int unie(int e)
{ {
#ifdef _WIN32 #ifdef _WIN32
switch (e) { switch (e) {
@ -64,4 +64,4 @@ inline const int unie(int e)
#define LOG(s, str, ...) \ #define LOG(s, str, ...) \
if (params.debug >= s) \ if (params.debug >= s) \
fprintf(stderr, str, ##__VA_ARGS__) fprintf(stderr, str, ##__VA_ARGS__)
#endif #endif

View File

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

8
main.c
View File

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

View File

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

View File

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

10
proxy.c
View File

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

View File

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