Skip to content

Commit

Permalink
fix arm for PATH_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Dec 14, 2024
1 parent b8e4408 commit 2fee107
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions programs/ziti-edge-tunnel/config-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
#include <unistd.h>
#endif
#if _WIN32
#ifndef PATH_MAX //normalize to PATH_MAX even on vs 2022 and arm
#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
#else
#error "PATH_MAX and MAX_PATH are not defined, PATH_MAX cannot be set
#endif
#endif
#define realpath(rel, abs) _fullpath(abs, rel, PATH_MAX)
#endif

Expand Down

0 comments on commit 2fee107

Please sign in to comment.