Fix Windows build: net/if.h and route_lib.h forward declarations
- Wrap net/if.h include in #ifndef _WIN32 in etcp_connections.c - Add forward declarations for ROUTE_TABLE and ROUTE_ENTRY in route_lib.h - All 22 tests pass on Linux
This commit is contained in:
1 parent
605a928350
commit
8af2904033
34 files changed
+8046
-7909
No files matched your search
@@ -1,7 +1,9 @@
|
||||
#include "etcp_connections.h"
|
||||
#include "../lib/socket_compat.h"
|
||||
#include "../lib/platform_compat.h"
|
||||
#ifndef _WIN32
|
||||
#include <net/if.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include "route_lib.h"
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
// Forward declarations
|
||||
struct ETCP_CONNECTIONS;
|
||||
struct ROUTE_TABLE;
|
||||
struct ROUTE_ENTRY;
|
||||
|
||||
/**
|
||||
* @brief Типы маршрутов
|
||||
|
||||
Reference in new issue
Block a user