diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 696b6ab..6bf0c5b 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2780,7 +2780,9 @@ int setenv (const char *, const char *, int); #include #include #include -#include +#ifdef __MINGW32CE__ +# include +#endif #include #include @@ -3171,7 +3173,11 @@ EOF if (rval == -1) { /* failed to start process */ +#ifdef __MINGW32CE__ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); +#else + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\"\n", lt_argv_zero)); +#endif return 127; } return rval; @@ -3400,8 +3406,12 @@ chase_symlinks (const char *pathspec) } else { +#ifdef __MINGW32CE__ char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); +#else + lt_fatal ("Error accessing file %s", tmp_pathspec); +#endif } } XFREE (tmp_pathspec);