Fri, 13 Apr 2012 18:48:23 +0200
Correct various structure and architecture problems in code including:
use functions from ISO C stdio requires cstdio header,
include sockio header only in platforms where it's present,
touch random number seeder logic on X86-64 platforms as well as IA-32,
and hopefully use all 64 bits of register as it would seem that more
like 'asm("rdtsc" : "=a" (lowtick), "=d" (hitick));' is needed instead.
1 Index: random/unix.c
2 --- random/unix.c.orig 2005-08-23 00:48:20 +0200
3 +++ random/unix.c 2005-09-06 20:55:10 +0200
4 @@ -24,6 +24,9 @@
5 #include <stdio.h>
6 #include <string.h>
7 #include <time.h>
8 +#ifdef __FreeBSD__
9 +#include <pthread.h>
10 +#endif
11 #include "crypt.h"
13 /* Unix and Unix-like systems share the same makefile, make sure that the