diff options
author | John Malmberg <wb8tyw@qsl.net> | 2018-08-06 07:48:19 -0500 |
---|---|---|
committer | John Malmberg <wb8tyw@qsl.net> | 2018-08-06 07:48:19 -0500 |
commit | 02e8aa7f237791e13b1431f70df14fa3a3404bc2 (patch) | |
tree | 42ef385a2135e0b1d895090f858b6fc9b0ee4bfb | |
parent | ae3c6bfca054920ff88501d3c6e663617f611478 (diff) | |
download | egawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.tar.gz egawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.tar.bz2 egawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.zip |
Add fixes for building with gnu regex.
-rwxr-xr-x | ChangeLog | 4 | ||||
-rw-r--r-- | custom.h | 7 | ||||
-rw-r--r-- | vms/ChangeLog | 5 | ||||
-rw-r--r-- | vms/generate_config_vms_h_gawk.com | 10 |
4 files changed, 26 insertions, 0 deletions
@@ -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 @@ -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. |