* configure.host: Add arm*-*-openbsd*.
[deliverable/binutils-gdb.git] / gdb / top.c
index b56a3cfb026fcd73e2d6b980073509449500be64..1bd22e3706d19b0f700ecd752518d049a6eb7695 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
 
 /* Initialization file name for gdb.  This is overridden in some configs.  */
 
+#ifndef PATH_MAX
+# ifdef FILENAME_MAX
+#  define PATH_MAX FILENAME_MAX
+# else
+#  define PATH_MAX 512
+# endif
+#endif
+
 #ifndef        GDBINIT_FILENAME
 #define        GDBINIT_FILENAME        ".gdbinit"
 #endif
-char gdbinit[] = GDBINIT_FILENAME;
+char gdbinit[PATH_MAX + 1] = GDBINIT_FILENAME;
 
 int inhibit_gdbinit = 0;
 
This page took 0.025012 seconds and 4 git commands to generate.