Revert call to bfd_cache_close().
[deliverable/binutils-gdb.git] / gdb / main.c
index 2b70712d130115a9eff111fc99f45d2b30346965..ceac1327e3566824a43367d9bd1347bd0898909b 100644 (file)
@@ -91,7 +91,6 @@ extern int enable_external_editor;
 extern char *external_editor_command;
 
 #ifdef __CYGWIN__
-#include <windows.h>           /* for MAX_PATH */
 #include <sys/cygwin.h>                /* for cygwin32_conv_to_posix_path */
 #endif
 
@@ -535,13 +534,13 @@ extern int gdbtk_test (char *);
      *before* all the command line arguments are processed; it sets
      global parameters, which are independent of what file you are
      debugging or what directory you are in.  */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
   {
     char *tmp = getenv ("HOME");
 
     if (tmp != NULL)
       {
-       homedir = (char *) alloca (MAX_PATH + 1);
+       homedir = (char *) alloca (PATH_MAX + 1);
        cygwin32_conv_to_posix_path (tmp, homedir);
       }
     else
This page took 0.023986 seconds and 4 git commands to generate.