From: Vincent Torri Date: Sun, 23 Nov 2008 19:30:33 +0000 (+0100) Subject: Fix func_emit_cwrapperexe_src for WinCE: no errno support. X-Git-Tag: v2.2.7b~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a06feab95ec4c0e10f265dfb40aff381489d8f3;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index b54087e78..39762010e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-23 Vincent Torri (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 No libm in WinCE. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 46dbe0888..0fe3fc908 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2759,7 +2759,9 @@ int setenv (const char *, const char *, int); #include #include #include -#include +#ifndef __MINGW32CE__ +# include +#endif #include #include @@ -3152,7 +3154,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; @@ -3381,8 +3387,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);