diff --git a/crypto/o_fopen.c b/crypto/o_fopen.c index 951d034ddaae05cc30d0d3af4aec2d01558c07be..1b4028c9a81a807e35bc8ca58f36e4718d1b2108 100644 --- a/crypto/o_fopen.c +++ b/crypto/o_fopen.c @@ -15,6 +15,9 @@ # ifdef _WIN32 # include # endif +# ifdef __DJGPP__ +# include +# endif FILE *openssl_fopen(const char *filename, const char *mode) { @@ -64,7 +67,7 @@ FILE *openssl_fopen(const char *filename, const char *mode) { char *newname = NULL; - if (!HAS_LFN_SUPPORT(filename)) { + if (pathconf(filename, _PC_NAME_MAX) <= 12) { /* 8.3 file system? */ char *iterator; char lastchar;