mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-28 14:50:54 +00:00
Compare commits
6 Commits
6530bdb82c
...
69abe9b05e
Author | SHA1 | Date | |
---|---|---|---|
|
69abe9b05e | ||
|
86c9f79991 | ||
|
8e1a247c1f | ||
|
94d687d9e5 | ||
|
0382126c8a | ||
|
8cc1671db2 |
@ -9,12 +9,18 @@ set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
set (LWIP_DEFINITIONS LWIP_DEBUG=1)
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app)
|
||||
option(LWIP_OPTION_ENABLE_EXAMPLE_APPS "Build example apps on win32/linux/darwin" ON)
|
||||
|
||||
if (LWIP_OPTION_ENABLE_EXAMPLE_APPS)
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app)
|
||||
else()
|
||||
message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
|
||||
endif()
|
||||
else()
|
||||
message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
|
||||
message(STATUS "example_app build disabled")
|
||||
endif()
|
||||
|
||||
# Source package generation
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#if defined(LWIP_UNIX_OPENBSD)
|
||||
#if defined(LWIP_UNIX_OPENBSD) || defined(LWIP_UNIX_MACH)
|
||||
#include <util.h>
|
||||
#endif
|
||||
#include <termios.h>
|
||||
|
@ -77,7 +77,7 @@ static int deflate_level; /* default compression level, can be changed via comma
|
||||
#define CHDIR(path) SetCurrentDirectoryA(path)
|
||||
#define CHDIR_SUCCEEDED(ret) (ret == TRUE)
|
||||
|
||||
#elif __linux__
|
||||
#elif __linux__ || __APPLE__
|
||||
|
||||
#define GETCWD(path, len) getcwd(path, len)
|
||||
#define GETCWD_SUCCEEDED(ret) (ret != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user