about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f8927c79d..0c48121e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-06-05  Peter Stephenson  <pws@csr.com>
 
+	* 17292: Src/builtin.c: shut up compiler if no OPEN_MEMSTREAM.
+
 	* 17265: Src/exec.c, Src/jobs.c, Src/Modules/clone.c: Make the
 	`jobs' command work in a subshell of a shell with job control by
 	saving the valid bits of the job table.
diff --git a/Src/builtin.c b/Src/builtin.c
index 18e95da24..90681fc3a 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2914,7 +2914,10 @@ bin_print(char *name, char **args, char *ops, int func)
     int flags[5], *len;
     char *start, *endptr, *c, *d, *flag, *buf, spec[11], *fmt = NULL;
     char **first, *curarg, *flagch = "0+- #", save = '\0', nullstr = '\0';
-    size_t rcount, mcount, count = 0;
+    size_t rcount, count = 0;
+#ifdef HAVE_OPEN_MEMSTREAM
+    size_t mcount;
+#endif
     FILE *fout = stdout;
     Histent ent;