]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix func_emit_cwrapperexe_src for WinCE: no errno support.
authorVincent Torri <vtorri@univ-evry.fr>
Sun, 23 Nov 2008 19:30:33 +0000 (20:30 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Nov 2008 19:30:59 +0000 (20:30 +0100)
* 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>
ChangeLog
libltdl/config/ltmain.m4sh

index b54087e78b7d9f034e62592122bb7338755da4be..39762010ec78a7210398d51cbb8f98c89e10ba28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 46dbe0888a45ef41050a14d5a1cdb39d154a1182..0fe3fc908d51e1c257312d8c4eabc21abffde9ea 100644 (file)
@@ -2759,7 +2759,9 @@ int setenv (const char *, const char *, int);
 #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>
 
@@ -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);