--- freem/src/iniconf.c 2025/04/10 01:24:38 1.6 +++ freem/src/iniconf.c 2025/04/10 15:31:25 1.8 @@ -1,5 +1,5 @@ /* - * $Id: iniconf.c,v 1.6 2025/04/10 01:24:38 snw Exp $ + * $Id: iniconf.c,v 1.8 2025/04/10 15:31:25 snw Exp $ * Function implementations for reading * FreeM configuration files * @@ -25,6 +25,12 @@ * along with FreeM. If not, see . * * $Log: iniconf.c,v $ + * Revision 1.8 2025/04/10 15:31:25 snw + * Attempt to fix DosCopy calls for OS/2 + * + * Revision 1.7 2025/04/10 15:27:39 snw + * Detect Devuan distribution and fix OS/2 problem with iniconf.c + * * Revision 1.6 2025/04/10 01:24:38 snw * Remove C++ style comments * @@ -56,6 +62,10 @@ #include #include "mpsdef.h" +#if defined(__OS2__) +# include +#endif + extern char config_file[4096]; #if !defined(PATH_MAX) && defined(_SCO_DS) @@ -374,7 +384,7 @@ int modify_profile_string(char *file, ch #if !defined(__OS2__) cp (file, output_filename); #else - DosCopy (output_filename, file); + DosCopy (output_filename, file, 1); #endif return changed;