From 6f0d99e5bce5ba75594ae346df5e0414e523df50 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 5 Apr 2004 19:20:01 +0000
Subject: [PATCH] More non-local fixes for *nix

---
 src/odoors/ODCFile.c |  4 ++++
 src/odoors/ODInEx1.c | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/src/odoors/ODCFile.c b/src/odoors/ODCFile.c
index eb3a4a3a43..e54444c443 100644
--- a/src/odoors/ODCFile.c
+++ b/src/odoors/ODCFile.c
@@ -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;
 
diff --git a/src/odoors/ODInEx1.c b/src/odoors/ODInEx1.c
index a8d714ebfc..3f22624cc3 100644
--- a/src/odoors/ODInEx1.c
+++ b/src/odoors/ODInEx1.c
@@ -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;
-- 
GitLab