From a41e8aa58143cc68073492b29c72586c071e0512 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 28 May 2005 21:02:02 +0000 Subject: [PATCH] main.c: need if not HAVE_ARC4RANDOM strlfun.c: sync found while creating debian source package main.c, check.t: mksh R22c --- check.t | 4 ++-- main.c | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/check.t b/check.t index fbaa1ce..0ba72b8 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.14 2005/05/25 14:39:33 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.15 2005/05/28 21:02:02 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -3734,5 +3734,5 @@ category: pdksh stdin: echo $KSH_VERSION expected-stdout: - @(#)MIRBSD KSH R22 2005/05/25 + @(#)MIRBSD KSH R22 2005/05/28 --- diff --git a/main.c b/main.c index 58f9a0d..49da6ad 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/** $MirOS: src/bin/mksh/main.c,v 1.8 2005/05/26 23:01:30 tg Exp $ */ +/** $MirOS: src/bin/mksh/main.c,v 1.9 2005/05/28 21:02:02 tg Exp $ */ /* $OpenBSD: main.c,v 1.38 2005/03/30 17:16:37 deraadt Exp $ */ /* $OpenBSD: tty.c,v 1.8 2005/03/30 17:16:37 deraadt Exp $ */ /* $OpenBSD: io.c,v 1.21 2005/03/30 17:16:37 deraadt Exp $ */ @@ -9,8 +9,11 @@ #include #include #include +#if !HAVE_ARC4RANDOM +#include +#endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.8 2005/05/26 23:01:30 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.9 2005/05/28 21:02:02 tg Exp $"); extern char **environ; @@ -18,7 +21,7 @@ static void reclaim(void); static void remove_temps(struct temp *tp); static int is_restricted(char *name); -const char ksh_version[] = "@(#)MIRBSD KSH R22 2005/05/25"; +const char ksh_version[] = "@(#)MIRBSD KSH R22 2005/05/28"; static const char initifs[] = "IFS= \t\n";