Skip to content

Commit

Permalink
Make mbedTLS compile with MS-DOS DJGPP
Browse files Browse the repository at this point in the history
Signed-off-by: SuperIlu <[email protected]>
  • Loading branch information
SuperIlu authored and Ilu committed Dec 1, 2024
1 parent 763c116 commit 6d32712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/net_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ void mbedtls_net_usleep(unsigned long usec)
#else
struct timeval tv;
tv.tv_sec = usec / 1000000;
#if defined(__unix__) || defined(__unix) || \
(defined(__APPLE__) && defined(__MACH__))
#if (defined(__unix__) || defined(__unix) || \
(defined(__APPLE__) && defined(__MACH__))) && !defined(__DJGPP__)
tv.tv_usec = (suseconds_t) usec % 1000000;
#else
tv.tv_usec = usec % 1000000;
Expand Down

0 comments on commit 6d32712

Please sign in to comment.