Skip to content
Snippets Groups Projects
Commit 82a54441 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Move FILE_RETRY_DELAY definition to filewrap.h

so we can use it in nopen.c without requiring sbbsdefs.h ... smbdefs.h

This should fix the SVDM build.
parent 0ed64ae6
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
Pipeline #7515 passed
......@@ -24,7 +24,6 @@
#include "filewrap.h"
#include "sockwrap.h"
#include "nopen.h"
#include "sbbsdefs.h"
#ifdef _WIN32
#include <io.h>
#endif
......
......@@ -515,7 +515,6 @@ typedef enum { /* Values for xtrn_t.event */
#define SEC_RING 6 /* Maximum seconds between rings */
#define LOOP_NODEDAB 200 /* Retries on node.dab locking/unlocking */
#define FILE_RETRY_DELAY(x) mswait(((x / 10) * 50) + xp_random(100))
/* String lengths */
#define LEN_ALIAS 25 /* User alias */
......
......@@ -146,6 +146,7 @@
// These errno values should trigger sopen() and lock() retries, within limits
#define FILE_RETRY_ERRNO(x) ((x)==EACCES || (x)==EAGAIN || (x)==EDEADLOCK || (x)==EBUSY || (x)==EIO)
#define FILE_RETRY_DELAY(x) SLEEP(((x / 10) * 50) + xp_random(100))
/**************/
/* Prototypes */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment