]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps: Move PATH_MAX define out of the win32 block
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sat, 21 Mar 2026 14:35:02 +0000 (15:35 +0100)
committerEugene Syromiatnikov <esyr@openssl.org>
Sun, 26 Apr 2026 11:35:27 +0000 (13:35 +0200)
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)

apps/s_server.c

index cd5a8aab97c3d571f63367be33dad4a5b674e6fd..bcb26cb2851a8df6bcb19d2e9feb406595d30b1b 100644 (file)
 #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>