diff --git a/ChangeLog b/ChangeLog index cabc93d..a41264f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-09 Ralf Wildenhues + + Do not use errno system in func_emit_cwrapperexe_src() + with the mingw32ce compiler + * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Do not + include errno.h and remove calls related to errno when using the + mingw32ce compiler. + 2008-10-05 Ralf Wildenhues Atomic shared library install permissions on HP-UX. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 696b6ab..a09c5be 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 +#ifndef __MINGW32CE__ +# include +#endif #include #include @@ -3171,7 +3173,11 @@ EOF if (rval == -1) { /* failed to start process */ +#ifndef __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 { +#ifndef __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);