aboutsummaryrefslogtreecommitdiff
blob: 44c6a8e786040b1edb0650f000a08bb7baf22532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Paul H. Hargrove
See https://upc-bugs.lbl.gov/bugzilla/show_bug.cgi?id=3141
--- open64/osprey1.0/gccfe/tree_symtab.h
+++ open64/osprey1.0/gccfe/tree_symtab.h
@@ -45,7 +45,12 @@
 #include <set>
 #include <upc_symtab_utils.h>

-#define MAX_PATH 500
+#include <limits>
+#ifdef PATH_MAX
+ #define MAX_PATH PATH_MAX
+#else
+ #define MAX_PATH 4096
+#endif

 extern int Scope_level;
 extern int For_scope;