The PATH_MAX define is needed on HURD which is now skipped since it is
winthin the _WIN32 block.
Move the PATH_MAX check+define outside of the _WIN32 block.
Fixes: a2e5848d9d11 "s_client and s_server options for ECH"
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Sun Apr 26 11:35:52 2026
(Merged from https://github.com/openssl/openssl/pull/30520)
#if defined(_WIN32)
/* Included before async.h to avoid some warnings */
#include <windows.h>
+#endif
#if !defined(OPENSSL_NO_ECH) && !defined(PATH_MAX)
#define PATH_MAX 4096
#endif
-#endif
#include <openssl/e_os2.h>
#include <openssl/async.h>