mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-10 10:40:59 +03:00
Make mbedTLS compile with MS-DOS DJGPP
Signed-off-by: SuperIlu <superilu@yahoo.com>
This commit is contained in:
@ -524,8 +524,8 @@ void mbedtls_net_usleep(unsigned long usec)
|
|||||||
#else
|
#else
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
tv.tv_sec = usec / 1000000;
|
tv.tv_sec = usec / 1000000;
|
||||||
#if defined(__unix__) || defined(__unix) || \
|
#if (defined(__unix__) || defined(__unix) || \
|
||||||
(defined(__APPLE__) && defined(__MACH__))
|
(defined(__APPLE__) && defined(__MACH__))) && !defined(__DJGPP__)
|
||||||
tv.tv_usec = (suseconds_t) usec % 1000000;
|
tv.tv_usec = (suseconds_t) usec % 1000000;
|
||||||
#else
|
#else
|
||||||
tv.tv_usec = usec % 1000000;
|
tv.tv_usec = usec % 1000000;
|
||||||
|
Reference in New Issue
Block a user