aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-07-15 15:11:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-07-15 15:11:28 +0300
commit84658669a180b3f1e63d20b6ea166f7c5733786b (patch)
tree325c2cca89d5cd32f149d3bb472466461bd9f987
parente0fb5433dc35f18d6a69a916f5bf4e90c796c356 (diff)
downloadegawk-84658669a180b3f1e63d20b6ea166f7c5733786b.tar.gz
egawk-84658669a180b3f1e63d20b6ea166f7c5733786b.tar.bz2
egawk-84658669a180b3f1e63d20b6ea166f7c5733786b.zip
First set of minor fixes on 4.0 Stable.
-rw-r--r--ChangeLog7
-rw-r--r--README_d/ChangeLog4
-rw-r--r--README_d/README.solaris13
-rw-r--r--awk.h2
-rw-r--r--builtin.c2
5 files changed, 26 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bf0f749b..0f01099a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-15 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awk.h: Typo fix: "loner" --> longer. Thanks to Nelson Beebe.
+ * builtin.c (efwrite): Fix flushing test back to what it was
+ in 3.1.8. Thanks to Strefil <strefil@yandex.ru> for the problem
+ report.
+
2011-06-24 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXTRA_DIST): Add ChangeLog.0.
diff --git a/README_d/ChangeLog b/README_d/ChangeLog
index 8aaeb418..2a0cf328 100644
--- a/README_d/ChangeLog
+++ b/README_d/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-15 Arnold D. Robbins <arnold@skeeve.com>
+
+ * README.solaris: Info added on using the Solaris C compiler.
+
2011-06-23 Arnold D. Robbins <arnold@skeeve.com>
* ChangeLog.0: Rotated ChangeLog into this file.
diff --git a/README_d/README.solaris b/README_d/README.solaris
index 60b7a42a..639ca2c6 100644
--- a/README_d/README.solaris
+++ b/README_d/README.solaris
@@ -1,3 +1,16 @@
+Fri Jul 15 14:24:00 IDT 2011
+============================
+It looks like you need to use
+
+ -Xc -D_XPG4_2
+
+on Solaris 10 with the Sun C compiler when compiling gawk in order for
+libsigsegv to be found correctly, and
+
+ -Xc -D_XPG4_2 -Duint64_t=upad64_t
+
+on Solaris 9.
+
Tue Apr 20 11:33:20 IDT 2010
============================
The lc_num1 test fails on Solaris 10 systems. This is a bug with Solaris,
diff --git a/awk.h b/awk.h
index 25abf419..2d13a213 100644
--- a/awk.h
+++ b/awk.h
@@ -67,7 +67,7 @@
#if defined(HAVE_STDARG_H)
#include <stdarg.h>
#else
-#error "gawk no loner supports <varargs.h>. Please update your compiler and runtime"
+#error "gawk no longer supports <varargs.h>. Please update your compiler and runtime"
#endif
#include <signal.h>
#include <time.h>
diff --git a/builtin.c b/builtin.c
index 724ea6df..1d841dc0 100644
--- a/builtin.c
+++ b/builtin.c
@@ -105,7 +105,7 @@ efwrite(const void *ptr,
if (fwrite(ptr, size, count, fp) != count)
goto wrerror;
if (flush
- && (output_is_tty
+ && ((fp == stdout && output_is_tty)
|| (rp != NULL && (rp->flag & RED_NOBUF)))) {
fflush(fp);
if (ferror(fp))