* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[__MINGW32CE__]: Do not use errno, do not include errno.h and
remove calls related to errno when using the mingw32ce compiler.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2008-11-23 Vincent Torri <vtorri@univ-evry.fr> (tiny change)
+
+ Fix func_emit_cwrapperexe_src for WinCE: no errno support.
+ * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
+ [__MINGW32CE__]: Do not use errno, do not include errno.h and
+ remove calls related to errno when using the mingw32ce compiler.
+
2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
No libm in WinCE.
#include <assert.h>
#include <string.h>
#include <ctype.h>
-#include <errno.h>
+#ifndef __MINGW32CE__
+# include <errno.h>
+#endif
#include <fcntl.h>
#include <sys/stat.h>
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;
}
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);