build fixes *sigh*
This commit is contained in:
parent
6c8eabf72e
commit
be0b2c7aed
5
Build.sh
5
Build.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $MirBSD: Build.sh,v 1.3 2004/05/24 19:55:51 tg Exp $
|
||||
# $MirBSD: Build.sh,v 1.4 2004/05/24 20:13:03 tg Exp $
|
||||
#-
|
||||
# Copyright (c) 2004
|
||||
# Thorsten Glaser <x86@ePost.de>
|
||||
|
@ -47,7 +47,8 @@ if test -e strlfun.c; then
|
|||
nroff -mandoc -Tascii <ksh.1 >ksh.cat1
|
||||
if [ -z "$WEIRD_OS" ]; then
|
||||
strip -R .note -R .comment -R .rel.dyn -R .sbss \
|
||||
--strip-unneeded --strip-all ksh || strip ksh
|
||||
--strip-unneeded --strip-all ksh \
|
||||
|| strip ksh || rm -f ksh
|
||||
else
|
||||
echo "Remember to strip the ksh binary!"
|
||||
fi
|
||||
|
|
6
rnd.c
6
rnd.c
|
@ -1,4 +1,4 @@
|
|||
/* $MirBSD: rnd.c,v 1.1 2004/05/24 19:06:55 tg Exp $
|
||||
/* $MirBSD: rnd.c,v 1.2 2004/05/24 20:13:03 tg Exp $
|
||||
*-
|
||||
* Copyright (c) 2004
|
||||
* Thorsten Glaser <x86@ePost.de>
|
||||
|
@ -55,10 +55,10 @@ rnd_get(void)
|
|||
void
|
||||
rnd_put(long newval)
|
||||
{
|
||||
u_int32_t sv;
|
||||
long sv;
|
||||
|
||||
rnd_state = 1 | rnd_get();
|
||||
sv = (((u_int32_t)rnd_get()) << (newval & 7)) ^ (u_int32_t)newval;
|
||||
sv = (rnd_get() << (newval & 7)) ^ newval;
|
||||
|
||||
#if defined(HAVE_ARC4RANDOM_PUSH)
|
||||
arc4random_push(sv);
|
||||
|
|
Loading…
Reference in New Issue