PR ada/23187
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Aug 2005 13:07:05 +0000 (13:07 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Aug 2005 13:07:05 +0000 (13:07 +0000)
(GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103600 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/adaint.c

index e1453f7..d5543b9 100644 (file)
@@ -263,7 +263,11 @@ const int __gnat_vmsp = 0;
 #include <sys/param.h>
 #endif
 
+#ifdef MAXPATHLEN
 #define GNAT_MAX_PATH_LEN MAXPATHLEN
+#else
+#define GNAT_MAX_PATH_LEN 256
+#endif
 
 #endif