Compare commits

..

3 Commits

Author SHA1 Message Date
Sergey Fionov
a9147bb332
Merge 5171345eb8 into 86c9f79991 2024-05-17 11:09:56 +08:00
jeans
86c9f79991 refactor: added apple macro for fs handling 2024-05-14 13:53:42 +02:00
jeans
8e1a247c1f refactor: added macOS include file
MacOS supports util.h as well
2024-05-14 13:53:42 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#if defined(LWIP_UNIX_OPENBSD) #if defined(LWIP_UNIX_OPENBSD) || defined(LWIP_UNIX_MACH)
#include <util.h> #include <util.h>
#endif #endif
#include <termios.h> #include <termios.h>

View File

@ -77,7 +77,7 @@ static int deflate_level; /* default compression level, can be changed via comma
#define CHDIR(path) SetCurrentDirectoryA(path) #define CHDIR(path) SetCurrentDirectoryA(path)
#define CHDIR_SUCCEEDED(ret) (ret == TRUE) #define CHDIR_SUCCEEDED(ret) (ret == TRUE)
#elif __linux__ #elif __linux__ || __APPLE__
#define GETCWD(path, len) getcwd(path, len) #define GETCWD(path, len) getcwd(path, len)
#define GETCWD_SUCCEEDED(ret) (ret != NULL) #define GETCWD_SUCCEEDED(ret) (ret != NULL)