summaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index ad4ed038cc1..7b1e515e2ff 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -57,6 +57,13 @@
#include "cp-abi.h"
#include "observer.h"
+#ifdef __CYGWIN__
+/* LOCAL: Hack for testing using a Windows compiler and a Cygwin GDB. */
+int cygwin_filename_cmp (const char *lhs, const char *rhs);
+#undef FILENAME_CMP
+#define FILENAME_CMP cygwin_filename_cmp
+#endif
+
/* Prototypes for local functions */
static void completion_list_add_name (char *, char *, int, char *, char *);