From c7aa2111231e64064b2ba32c204d07ab9e064364 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 14 Aug 2003 03:13:38 +0000
Subject: [PATCH] Send init errors to stderr

---
 src/odoors/ODInEx1.c | 3 +++
 src/odoors/ODKrnl.c  | 2 +-
 src/odoors/ODPlat.h  | 3 ++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/odoors/ODInEx1.c b/src/odoors/ODInEx1.c
index f2715cbc1e..ecb9888a58 100644
--- a/src/odoors/ODInEx1.c
+++ b/src/odoors/ODInEx1.c
@@ -2374,6 +2374,9 @@ void ODInitError(char *pszErrorText)
       free(pszMessage);
    }
 #endif
+#ifdef ODPLAT_NIX
+   write(2,pszErrorText,strlen(pszErrorText));
+#endif
 }
 
 
diff --git a/src/odoors/ODKrnl.c b/src/odoors/ODKrnl.c
index 5768d71f58..df948526c0 100644
--- a/src/odoors/ODKrnl.c
+++ b/src/odoors/ODKrnl.c
@@ -203,7 +203,7 @@ tODResult ODKrnlInitialize(void)
    itv.it_value.tv_sec=0;
    itv.it_value.tv_usec=10000;
    setitimer(ITIMER_REAL,&itv,NULL);
-   
+
    /* Make stdin signal driven. */
 /*   act.sa_handler=sig_get_char;
 /*   act.sa_flags=0;
diff --git a/src/odoors/ODPlat.h b/src/odoors/ODPlat.h
index 997032b713..b7f894ddcb 100644
--- a/src/odoors/ODPlat.h
+++ b/src/odoors/ODPlat.h
@@ -72,7 +72,8 @@ typedef struct
    clock_t Start;
    clock_t Duration;
 #elif defined(ODPLAT_NIX)
-   struct timeval Start;
+   long Start_sec;
+   long Start_usec;
    tODMilliSec Duration;
 #else /* !ODPLAT_DOS */
    tODMilliSec Start;
-- 
GitLab