[PATCH] libtool: Cygwin does not use DOS based filesystem

JonY <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Even though it runs on Windows, Cygwin uses UNIX paths.
The _WIN32 macro may still be defined when using Win32 APIs
however.

Signed-off-by: Jonathan Yong <[email protected]>
---
 build-aux/ltmain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 96b37003..3bb3043e 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -3711,8 +3711,8 @@ int setenv (const char *, const char *, int);
 # define PATH_SEPARATOR ':'
 #endif

-#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
-  defined __OS2__
+#if (defined _WIN32 && ! defined __CYGWIN__) || defined __MSDOS__ || \
+  defined __DJGPP__ || defined __OS2__
 # define HAVE_DOS_BASED_FILE_SYSTEM
 # define FOPEN_WB "wb"
 # ifndef DIR_SEPARATOR_2
-- 
2.26.1
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5QrdnbBX9Ppk4bbPcTtf4pwUXUUFAl6Y9fkACgkQcTtf4pwU
XUUcsw/+KdTUlIKwSmkRCrdMfRFsrwRNPbs+xPavgrifI6SnMPj4L7UaxHnMlpY3
2o/jfaxjNlCv7QGkEVFp+QwHjdManUj5FgPvmyuokmG2rSCetp0BBKL7MRtia3Ze
eMC18uHxtwnfgZSUWSwtJHYUve8T2wDnn+mMbvIzCGnuSAg2JZsHgPWPbagpNyup
n0nuSI3zkeHdwVfP/pjrGi1MsBJtY7aMc7fC/wSPx43ha9NET+ConSztPWDv+IJq
mZB3y6huhZ3voEZBZtNv3cMhIMAyF4ze5HlZE0j4YZ40+K+Kgp3WX4IY4nFI6YyV
TlS6SvSFAmNiXe2O3a2IHs/dZ2k+ciipAjhjxMScUXLl1a2mePJQbU9yzp4kK5ti
jKROKJb8VlJLpBxp8G5OzMxSwDs06jdxnx9pclZ5ANd4KqQsFvK1SSr7fLDWBKfF
vWkfblEwmuR2WyjxqHrRl+cqabozqEFOrqBqjYZImjj5Yc+tL9T7mCDpolKYeatd
EE2DC2vKi2BKBALWZMtsSrmIrvP2V90mvHJAHh5aDQKCV5mBFBDEeaB6rIz6zN/H
G/CDBhEF6R3+qR1SzPg0AeTDd5tBrXESkI9qI/W20qbxMPXyHWwFgtIxmiRiMOlM
73tJgdexTx75JxEnlMo+/9I/87YYEFPUuA5YCo+uAHKNRonTOqY=
=UIvi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.