aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog4
-rw-r--r--custom.h7
-rw-r--r--vms/ChangeLog5
-rw-r--r--vms/generate_config_vms_h_gawk.com10
4 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 31d3d7a0..54216752 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-05 John E. Malmberg <wb8tyw@qsl.net>
+
+ * custom.h: Define macros needed for building with gnu regex.
+
2018-08-02 Arnold D. Robbins <arnold@skeeve.com>
* awkgram.y (yylex): Add lint warning upon encountering escaped
diff --git a/custom.h b/custom.h
index 0ec8d1f9..774659a6 100644
--- a/custom.h
+++ b/custom.h
@@ -44,6 +44,13 @@
#include <fp.h>
/* isnan () macro is broken */
#undef isnan
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+#define __builtin_expect(expr, val) (expr)
+#ifndef SIZE_MAX
+#define SIZE_MAX __INT32_MAX
+#endif
#endif
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
diff --git a/vms/ChangeLog b/vms/ChangeLog
index f2f2aa00..be8d0e68 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-03 John E. Malmberg <wb8tyw@qsl.net>
+
+ * generate_config_vms_h_gawk.com:
+ Create a stub stdint.h when OpenVMS does not provide one.
+
2018-02-25 Arnold D. Robbins <arnold@skeeve.com>
* 4.2.1: Release tar ball made.
diff --git a/vms/generate_config_vms_h_gawk.com b/vms/generate_config_vms_h_gawk.com
index a6a37434..8edf55d7 100644
--- a/vms/generate_config_vms_h_gawk.com
+++ b/vms/generate_config_vms_h_gawk.com
@@ -61,6 +61,16 @@ $ if (arch_name .eqs. "") then arch_name = "UNK"
$ endif
$!
$!
+$ pipe lib/list sys$library:decc$rtldef.tlb | search sys$input: stdint
+$ if '$SEVERITY' .ne. 1
+$ then
+$ create sys$disk:[]stdint.h
+$ open/append stdint_h sys$disk:[]stdint.h
+$ write stdint_h "/* Fake stdint.h for gnulib */"
+$ close stdint_h
+$ endif
+$!
+$!
$! Start the configuration file.
$! Need to do a create and then an append to make the file have the
$! typical file attributes of a VMS text file.