summaryrefslogtreecommitdiff
path: root/config.h-vms.template
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-01-22 05:59:28 +0000
committerPaul Smith <psmith@gnu.org>2000-01-22 05:59:28 +0000
commit74fca88bf3cfc802308018faf69b0231876c633c (patch)
treec0855e19eb5fad86544aa194577cf72e9f2ae739 /config.h-vms.template
parent5577cdc2616262ae89c28cda49b5dd5449be472d (diff)
downloadgunmake-74fca88bf3cfc802308018faf69b0231876c633c.tar.gz
* More fixes to VMS by Hartmut Becker.
Diffstat (limited to 'config.h-vms.template')
-rw-r--r--config.h-vms.template17
1 files changed, 13 insertions, 4 deletions
diff --git a/config.h-vms.template b/config.h-vms.template
index e2dd026..67b9447 100644
--- a/config.h-vms.template
+++ b/config.h-vms.template
@@ -330,14 +330,23 @@
/* #undef WANT_CASE_SENSITIVE_TARGETS */
/* VMS specific, V7.0 has opendir() and friends, so it's undefined */
-/* Define first or both if you want to use non-VMS code for opendir() etc. */
+/* If you want to use non-VMS code for opendir() etc. on V7.0 and greater
+ define the first or both macros AND change the compile command to get the
+ non-VMS versions linked: (prefix=(all,except=(opendir,... */
/* #undef HAVE_VMSDIR_H */
/* #undef _DIRENT_HAVE_D_NAMLEN */
-/* On older systems with older CRTLs force non-VMS-code */
-#if __CRTL_VER < 70000000 && !defined(HAVE_VMSDIR_H)
-#define HAVE_VMSDIR_H 1
+/* On older systems without 7.0 backport of CRTL the first one is defined */
+#ifdef __CRTL_VER
+# if __CRTL_VER < 70000000
+# define HAVE_VMSDIR_H 1
+# endif
+#else
+# if __VMS_VER < 70000000
+# define HAVE_VMSDIR_H 1
+# endif
#endif
+
#if defined(HAVE_VMSDIR_H) && defined(HAVE_DIRENT_H)
#undef HAVE_DIRENT_H
#endif