changeset 339:77c86062e253

fluid-mnf/fluid.c: passes compilation
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 13 Mar 2020 02:33:21 +0000
parents b730c7844233
children 435e041897f2
files fluid-mnf/fluid.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fluid-mnf/fluid.c	Fri Mar 13 02:26:02 2020 +0000
+++ b/fluid-mnf/fluid.c	Fri Mar 13 02:33:21 2020 +0000
@@ -15,7 +15,7 @@
 #include "fileio.h"
 #include "trace.h"
 // Secure Calypso Plus
-#include "../inc/ram_load.h"
+#include "calplus/ram_load.h"
 
 #include <stdio.h>
 #include <string.h>
@@ -117,6 +117,7 @@
 
 extern char *main_strerror(int error);
 
+#if 0
 char *win32_strerror(void)
 {
     static char buf[220];
@@ -133,6 +134,7 @@
 
     return buf;
 }
+#endif
 
 void main_msg(char *format, ...)
 {
@@ -158,7 +160,7 @@
     // If it was an OS error...
     if (error < E_OS) {
         error -= E_OS;
-        main_msg("OS-ERROR: %s", win32_strerror());
+        main_msg("OS-ERROR: %s", strerror(errno));
     }
 
     main_msg(" %s(%d): %s%s\n", (type == 'w' ? "WARNING" : "ERROR"),