mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-03 19:03:42 +00:00
attempt to fix error in windows ci
This commit is contained in:
parent
932869b14a
commit
98e2296520
@ -6,6 +6,19 @@
|
||||
#include <unistd.h>
|
||||
#include "../../library/libstorage.h"
|
||||
|
||||
/* Provide realpath on Windows (not available on some MSVC/MinGW setups) */
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#include <limits.h>
|
||||
#if defined(_MSC_VER)
|
||||
#include <direct.h>
|
||||
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
|
||||
#else
|
||||
/* MinGW / other Windows gcc: map to _fullpath using PATH_MAX */
|
||||
#include <stdlib.h>
|
||||
#define realpath(N,R) _fullpath((R),(N),PATH_MAX)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// We need 250 as max retries mainly for the start function in CI.
|
||||
// Other functions should be not need that many retries.
|
||||
#define MAX_RETRIES 250
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user