aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2020-02-13 18:32:23 -0600
committerJohn Malmberg <wb8tyw@qsl.net>2020-02-13 18:32:23 -0600
commit49a3b8595db2c6d265f3e6635e4deb7accff8ced (patch)
tree9f9e28412207c3e8a651a2d007ba16e84e26a814
parent9ce4f70b852959e8a6c244f5cff96d7f50b5594f (diff)
downloadegawk-49a3b8595db2c6d265f3e6635e4deb7accff8ced.tar.gz
egawk-49a3b8595db2c6d265f3e6635e4deb7accff8ced.tar.bz2
egawk-49a3b8595db2c6d265f3e6635e4deb7accff8ced.zip
custom.h fix for OpenVMS regex handling.
-rw-r--r--ChangeLog4
-rw-r--r--custom.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 12bcbb97..5805c103 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-02-13 John E. Malmberg <wb8tyw@qsl.net>
+
+ * custom.h: OpenVMS needs _REGEX_INCLUDE_LIMITS_H defined.
+
2020-02-09 Arnold D. Robbins <arnold@skeeve.com>
* awkgram.y: Add lint check for assignment in condition to
diff --git a/custom.h b/custom.h
index 66e755de..b21cf384 100644
--- a/custom.h
+++ b/custom.h
@@ -44,6 +44,10 @@
#include <fp.h>
/* isnan () macro is broken */
#undef isnan
+/* VMS has POSIX confirming limits.h */
+#ifndef _REGEX_INCLUDE_LIMITS_H
+#define _REGEX_INCLUDE_LIMITS_H 1
+#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif /* _GNU_SOURCE */