* utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
+2002-02-27 Rodney Brown <rbrown64@csc.com.au>
+
+ * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
+
2002-02-27 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/acconfig.h: New file.
char buf[PATH_MAX];
#elif defined (MAXPATHLEN)
char buf[MAXPATHLEN];
+#elif defined (HAVE_UNISTD_H) && defined(HAVE_ALLOCA)
+ char *buf = alloca ((size_t)pathconf ("/", _PC_PATH_MAX));
#else
#error "Neither PATH_MAX nor MAXPATHLEN defined"
#endif