diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-12-05 20:47:08 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-12-05 20:47:08 +0200 |
commit | c084ecfb72609150bdfdce04831e83bb0e4e5cb6 (patch) | |
tree | eaa0bdead01ef5eff8f815288cdc1c1583d0dbac | |
parent | 7bc4e38b948e20f3d72e06662691a527a50eecbf (diff) | |
download | egawk-c084ecfb72609150bdfdce04831e83bb0e4e5cb6.tar.gz egawk-c084ecfb72609150bdfdce04831e83bb0e4e5cb6.tar.bz2 egawk-c084ecfb72609150bdfdce04831e83bb0e4e5cb6.zip |
Fixes for Z/OS.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | custom.h | 1 | ||||
-rw-r--r-- | dfa.c | 2 | ||||
-rw-r--r-- | regex.c | 4 |
4 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,11 @@ +2013-12-05 Arnold D. Robbins <arnold@skeeve.com> + + Fixes for Z/OS. + + * custom.h (__attribute__): Define to empty. + * dfa.c (parse_bracket_exp): Add a cast to quiet a warning. + * regex.c: Correctly bracket include of <sys/param.h>. + 2013-12-03 John E. Malmberg <wb8tyw@qsl.net> * io.c (redirect): Add additional VMS error code to check. @@ -75,4 +75,5 @@ #define unsetenv zos_unsetenv extern int setenv(const char *name, const char *value, int rewrite); extern int unsetenv(const char *name); +#define __attribute__(x) #endif @@ -1054,7 +1054,7 @@ parse_bracket_exp (void) if (MB_CUR_MAX > 1 && !pred->single_byte_only) { /* Store the character class as wctype_t. */ - wctype_t wt = wctype (class); + wctype_t wt = (wctype_t) wctype (class); REALLOC_IF_NECESSARY (work_mbc->ch_classes, ch_classes_al, @@ -57,9 +57,9 @@ #include <limits.h> /* This header defines the MIN and MAX macros. */ -#ifndef VMS +#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> -#endif /* VMS */ +#endif /* HAVE_SYS_PARAM_H */ #ifdef GAWK #undef alloca |