2002-02-27 Rodney Brown <rbrown64@csc.com.au>
authorRodney Brown <rbrown64@csc.com.au>
Wed, 27 Feb 2002 12:29:43 +0000 (12:29 +0000)
committerRodney Brown <rbrown64@csc.com.au>
Wed, 27 Feb 2002 12:29:43 +0000 (12:29 +0000)
      * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.

gdb/ChangeLog
gdb/utils.c

index e77bc1a340698177e8edac0dde2275cd300f7394..bb41c6004105ec7290be5a78194187d6f2439cdb 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 5d64083ae6be134705e0d7c31625cf11c51bdd44..af1a103b92dd05b1987a52a74e47f8edc2c78f9e 100644 (file)
@@ -2533,6 +2533,8 @@ gdb_realpath (const char *filename)
   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