hey,

here is a patch that removes compilation errors with mingw32ce because it does not support the errno system.

I don't know if it is the best solution, but it is working for me. So if you have a better solution, feel free to modify that patch

thank you

Vincent Torri
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 <assert.h>
 #include <string.h>
 #include <ctype.h>
-#include <errno.h>
+#ifdef __MINGW32CE__
+# include <errno.h>
+#endif
 #include <fcntl.h>
 #include <sys/stat.h>
 
@@ -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);

Reply via email to