Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 6f0d99e5 authored by deuce's avatar deuce

More non-local fixes for *nix

parent 1bc2faeb
......@@ -391,7 +391,11 @@ ODAPIDEF void ODCALL ODConfigInit(void)
case 4:
if(ODCfgIsTrue(szTempString))
{
#ifdef ODPLAT_NIX
od_control.baud = 1;
#else
od_control.baud = 0;
#endif
}
break;
......
......@@ -476,7 +476,11 @@ malloc_error:
/* variables that we must initialize if they weren't already set */
/* when the custom drop file was read. */
if(od_control.user_timelimit == 0) od_control.user_timelimit = 60;
#ifdef ODPLAT_NIX
if(od_control.port == -1) od_control.baud = 1L;
#else
if(od_control.port == -1) od_control.baud = 0L;
#endif
}
/* Setup inbound local/remote buffer. */
......@@ -505,7 +509,11 @@ force_local:
od_control.od_info_type = NO_DOOR_FILE;
/* Operate in local mode. */
#ifdef ODPLAT_NIX
od_control.baud = 1L;
#else
od_control.baud = 0L;
#endif
if(!bParsedCmdLine)
{
......@@ -835,7 +843,11 @@ read_dorinfox:
od_control.baud = atol(szIFTemp);
}
#ifdef ODPLAT_NIX
if(od_control.port == -1) od_control.baud = 1L;
#else
if(od_control.port == -1) od_control.baud = 0L;
#endif
/* Read line 6. */
if(fgets((char *)apszDropFileInfo[3],80,pfDropFile)==NULL) goto DropFileFail;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment