Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFC: Issue about assumption of DOSish file-system for cygwin
@ 2011-03-22 13:22 Kai Tietz
  2011-03-22 18:11 ` Dave Korn
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Tietz @ 2011-03-22 13:22 UTC (permalink / raw)
  To: GCC Patches, gdb-patches, Binutils; +Cc: Dave Korn

Hello,

I noticed this issue while working on those directory-separator thing
for DOSish file-systems, and somehow this looks odd to me. For some
reason the filenames.h header assumes for cygwin DOSish file-system,
but in fact cygwin uses POSIXish file-system. I assume this definition
was caused by the times cygwin compiler had -mno-cygwin option, but
well I think we should correct this by following patch.
Dave, might it be that I am overlooking here something obvious, why
cygwin should assume DOSish filesystem?

Regards,
Kai

Index: filenames.h
===================================================================
--- filenames.h (revision 171281)
+++ filenames.h (working copy)
@@ -30,7 +30,8 @@
 extern "C" {
 #endif

-#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) ||
defined (__CYGWIN__)
+#if (defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__)) \
+    && !defined (__CYGWIN__)
 #  ifndef HAVE_DOS_BASED_FILE_SYSTEM
 #    define HAVE_DOS_BASED_FILE_SYSTEM 1
 #  endif


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-22 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 13:22 RFC: Issue about assumption of DOSish file-system for cygwin Kai Tietz
2011-03-22 18:11 ` Dave Korn
2011-03-22 18:24   ` Kai Tietz
2011-03-22 18:57     ` Pedro Alves
2011-03-22 19:51       ` Kai Tietz
2011-03-22 19:53         ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox