@@ -994,7 +994,10 @@ static INLINE int SFTP_GetSz(byte* buf, word32* sz,
994994
995995#ifndef NO_WOLFSSH_SERVER
996996
997- #ifndef WOLFSSH_USER_FILESYSTEM
997+ #if defined(MICROCHIP_MPLAB_HARMONY ) || defined(WOLFSSH_ZEPHYR ) || \
998+ defined(WOLFSSH_FATFS ) || defined(FREESCALE_MQX ) || \
999+ defined(USE_WINDOWS_API ) || defined(WOLFSSL_NUCLEUS ) || \
1000+ !defined(WOLFSSH_USER_FILESYSTEM )
9981001static int SFTP_GetAttributes (void * fs , const char * fileName ,
9991002 WS_SFTP_FILEATRB * atr , byte noFollow , void * heap );
10001003static int SFTP_GetAttributes_Handle (WOLFSSH * ssh , byte * handle , int handleSz ,
@@ -4930,10 +4933,6 @@ int SFTP_GetAttributes_Handle(WOLFSSH* ssh, byte* handle, int handleSz,
49304933 return WS_NOT_COMPILED ;
49314934}
49324935
4933-
4934- #elif defined(WOLFSSH_USER_FILESYSTEM )
4935- /* User-defined I/O support */
4936-
49374936#elif defined(MICROCHIP_MPLAB_HARMONY )
49384937int SFTP_GetAttributesStat (WS_SFTP_FILEATRB * atr , WSTAT_T * stats )
49394938{
@@ -5038,6 +5037,9 @@ int SFTP_GetAttributes_Handle(WOLFSSH* ssh, byte* handle, int handleSz,
50385037 return SFTP_GetAttributesHelper (atr , cur -> name );
50395038}
50405039
5040+ #elif defined(WOLFSSH_USER_FILESYSTEM )
5041+ /* User-defined I/O support */
5042+
50415043#else
50425044
50435045/* NOTE: if atr->flags is set to a value of 0 then no attributes are set.
0 commit comments