Skip to content

Commit 8e2e3c5

Browse files
josepho0918ejohnstown
authored andcommitted
Improve MQX filesystem compatibility
1 parent 3df6bcf commit 8e2e3c5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/wolfsftp.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ int wolfSSH_SFTP_RecvOpen(WOLFSSH* ssh, int reqId, byte* data, word32 maxSz)
20562056

20572057
WLOG(WS_LOG_SFTP, "Receiving WOLFSSH_FTP_OPEN");
20582058

2059-
#ifdef MICROCHIP_MPLAB_HARMONY
2059+
#if defined(MICROCHIP_MPLAB_HARMONY) || defined(FREESCALE_MQX)
20602060
fd = WBADFILE;
20612061
#else
20622062
fd = -1;
@@ -5541,7 +5541,8 @@ static int SFTP_SetMode(void* fs, char* name, word32 mode) {
55415541
#endif
55425542

55435543
#if !defined(USE_WINDOWS_API) && !defined(WOLFSSH_ZEPHYR) \
5544-
&& !defined(WOLFSSH_SFTP_SETMODEHANDLE) && !defined(WOLFSSH_FATFS)
5544+
&& !defined(WOLFSSH_SFTP_SETMODEHANDLE) && !defined(WOLFSSH_FATFS) \
5545+
&& !defined(FREESCALE_MQX)
55455546
/* Set the files mode
55465547
* return WS_SUCCESS on success */
55475548
static int SFTP_SetModeHandle(void* fs, WFD handle, word32 mode) {
@@ -5553,7 +5554,8 @@ static int SFTP_SetModeHandle(void* fs, WFD handle, word32 mode) {
55535554
}
55545555
#endif
55555556

5556-
#if !defined(_WIN32_WCE) && !defined(WOLFSSH_ZEPHYR) && !defined(WOLFSSH_FATFS)
5557+
#if !defined(_WIN32_WCE) && !defined(WOLFSSH_ZEPHYR) && !defined(WOLFSSH_FATFS) \
5558+
&& !defined(FREESCALE_MQX)
55575559

55585560
/* sets a files attributes
55595561
* returns WS_SUCCESS on success */

0 commit comments

Comments
 (0)