mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #238 from JacobBarthelmeh/compile
add SIZEOF_OFF_T guess to wolfsftp.cpull/237/head
commit
d7ef3efae9
10
src/port.c
10
src/port.c
|
@ -85,16 +85,6 @@ int wfopen(WFILE** f, const char* filename, const char* mode)
|
||||||
#if (defined(WOLFSSH_SFTP) || defined(WOLFSSH_SCP)) && \
|
#if (defined(WOLFSSH_SFTP) || defined(WOLFSSH_SCP)) && \
|
||||||
!defined(NO_WOLFSSH_SERVER)
|
!defined(NO_WOLFSSH_SERVER)
|
||||||
|
|
||||||
#ifndef SIZEOF_OFF_T
|
|
||||||
/* if not using autoconf then make a guess on off_t size based on sizeof
|
|
||||||
* long long */
|
|
||||||
#if defined(SIZEOF_LONG) && SIZEOF_LONG == 8
|
|
||||||
#define SIZEOF_OFF_T 8
|
|
||||||
#else
|
|
||||||
#define SIZEOF_OFF_T 4
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USE_WINDOWS_API) || defined(WOLFSSL_NUCLEUS) || \
|
#if defined(USE_WINDOWS_API) || defined(WOLFSSL_NUCLEUS) || \
|
||||||
defined(FREESCALE_MQX)
|
defined(FREESCALE_MQX)
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "src/misc.c"
|
#include "src/misc.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* enum for bit field with an ID of each of the state structures */
|
/* enum for bit field with an ID of each of the state structures */
|
||||||
enum WS_SFTP_STATE_ID {
|
enum WS_SFTP_STATE_ID {
|
||||||
STATE_ID_ALL = 0, /* default to select all */
|
STATE_ID_ALL = 0, /* default to select all */
|
||||||
|
|
|
@ -349,6 +349,17 @@ extern "C" {
|
||||||
|
|
||||||
#if (defined(WOLFSSH_SFTP) || defined(WOLFSSH_SCP)) && \
|
#if (defined(WOLFSSH_SFTP) || defined(WOLFSSH_SCP)) && \
|
||||||
!defined(NO_WOLFSSH_SERVER)
|
!defined(NO_WOLFSSH_SERVER)
|
||||||
|
|
||||||
|
#ifndef SIZEOF_OFF_T
|
||||||
|
/* if not using autoconf then make a guess on off_t size based on sizeof
|
||||||
|
* long long */
|
||||||
|
#if defined(SIZEOF_LONG) && SIZEOF_LONG == 8
|
||||||
|
#define SIZEOF_OFF_T 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_OFF_T 4
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_NUCLEUS
|
#ifdef WOLFSSL_NUCLEUS
|
||||||
#define WSTAT_T struct stat
|
#define WSTAT_T struct stat
|
||||||
#define WRMDIR(fs,d) (NU_Remove_Dir((d)) == NU_SUCCESS)?0:1
|
#define WRMDIR(fs,d) (NU_Remove_Dir((d)) == NU_SUCCESS)?0:1
|
||||||
|
|
Loading…
Reference in New Issue