summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2019-01-09 08:29:41 -0600
committerJohn Malmberg <wb8tyw@qsl.net>2019-01-09 08:29:41 -0600
commit68e8a8a5bb52a3db4971204e2e23cab2eb29097b (patch)
tree4e62b6575697b524376380313bbe2efe49763676
parenta5dd80bb2b2ad33e0397b48d0ab2b220ed040f9e (diff)
downloadgawk-68e8a8a5bb52a3db4971204e2e23cab2eb29097b.tar.gz
Fixes for building on OpenVMS
-rwxr-xr-xChangeLog5
-rw-r--r--awk.h4
-rw-r--r--missing_d/ChangeLog4
-rw-r--r--missing_d/timegm.c2
-rw-r--r--support/ChangeLog5
-rw-r--r--support/cdefs.h4
-rw-r--r--support/xalloc.h6
-rw-r--r--vms/ChangeLog5
-rw-r--r--vms/generate_config_vms_h_gawk.com4
9 files changed, 28 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index fc4eec58..86ba9b25 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-09 John E. Malmberg <wb8tyw@qsl.net>
+
+ * awk.h: For non GCC, have __attribute__ definition match
+ support/regex_internal.h exactly.
+
2019-01-08 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h (r_interpret): For a translatable string, only copy
diff --git a/awk.h b/awk.h
index e3f458b2..6c820400 100644
--- a/awk.h
+++ b/awk.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991-2018 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991-2019 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -231,7 +231,7 @@ extern double gawk_strtod();
#endif
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
-# define __attribute__(x)
+# define __attribute__(arg)
#endif
#ifndef ATTRIBUTE_UNUSED
diff --git a/missing_d/ChangeLog b/missing_d/ChangeLog
index 3119ad81..8d62768c 100644
--- a/missing_d/ChangeLog
+++ b/missing_d/ChangeLog
@@ -1,3 +1,7 @@
+2019-01-09 John E. Malmberg <wb8tyw@qsl.net>
+
+ * timegm.c (timegm): Remove static attribute from function.
+
2018-12-12 Andrew J. Schorr <aschorr@telemetry-investments.com>
* timegm.c (timegm): Add comment indicating that this came from
diff --git a/missing_d/timegm.c b/missing_d/timegm.c
index fdb65fb5..faf377ed 100644
--- a/missing_d/timegm.c
+++ b/missing_d/timegm.c
@@ -3,7 +3,7 @@
/* timegm -- based on Linux timegm man page */
-static time_t
+time_t
timegm(struct tm *tm)
{
time_t ret;
diff --git a/support/ChangeLog b/support/ChangeLog
index 8bc944b1..a941f28c 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-09 John E. Malmberg <wb8tyw@qsl.net>
+
+ * cdefs.h, xalloc.h: For non GCC, have
+ __attribute__ definition match regex_internal.h exactly.
+
2018-12-26 Arnold D. Robbins <arnold@skeeve.com>
In a spirit of depressed resignation, synced regex
diff --git a/support/cdefs.h b/support/cdefs.h
index 26e2f3fe..b616e195 100644
--- a/support/cdefs.h
+++ b/support/cdefs.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -198,7 +198,7 @@
`__attribute__' syntax. All of the ways we use this do fine if
they are omitted for compilers that don't understand it. */
#if !defined __GNUC__ || __GNUC__ < 2
-# define __attribute__(xyz) /* Ignore */
+# define __attribute__(arg) /* Ignore */
#endif
/* At some point during the gcc 2.96 development the `malloc' attribute
diff --git a/support/xalloc.h b/support/xalloc.h
index 89dbe2c1..f238bb79 100644
--- a/support/xalloc.h
+++ b/support/xalloc.h
@@ -1,8 +1,8 @@
/* xalloc.h -- malloc with out-of-memory checking
Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2003, 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
- Inc.
+ 2000, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2019
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@ extern "C" {
# ifndef __attribute__
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
-# define __attribute__(x)
+# define __attribute__(arg)
# endif
# endif
diff --git a/vms/ChangeLog b/vms/ChangeLog
index 52b1433b..44f13a52 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-09 John E. Malmberg <wb8tyw@qsl.net>
+
+ * generate_config_h_vms_gawk.com: remove unused
+ definition for __attribute(a)
+
2018-08-07 John E. Malmberg <wb8tyw@qsl.net>
* vmstest.com: Fixes for back89, gsubtst5, and fsbs
diff --git a/vms/generate_config_vms_h_gawk.com b/vms/generate_config_vms_h_gawk.com
index 8edf55d7..b0d1ed1b 100644
--- a/vms/generate_config_vms_h_gawk.com
+++ b/vms/generate_config_vms_h_gawk.com
@@ -13,7 +13,7 @@ $! This generates a []config.h file and also a config_vms.h file,
$! which is used to supplement that file.
$!
$!
-$! Copyright (C) 2014, 2016 the Free Software Foundation, Inc.
+$! Copyright (C) 2014, 2016, 2019 the Free Software Foundation, Inc.
$!
$! This file is part of GAWK, the GNU implementation of the
$! AWK Progamming Language.
@@ -301,8 +301,6 @@ $ write cvh ""
$ write cvh "#define TIME_T_UNSIGNED 1"
$ write cvh "#include ""custom.h"""
$ write cvh ""
-$ write cvh "#define __attribute(a)"
-$ write cvh ""
$
$!
$! Close out the file