Skip to content
Snippets Groups Projects
Commit 49e2f770 authored by Rob Swindell's avatar Rob Swindell :speech_balloon: Committed by Deucе
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 27adb21b
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment