diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-15 13:02:13 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-15 13:02:13 +0000 |
commit | bc46671a9bcacca1e2fab1dd6468e72d954230bf (patch) | |
tree | 9ac3998bb78063fd58ae3841acc519da88e9b048 /libc/stdlib/srand48_r.c | |
parent | d5bb6d12f1ffee55f3287cf92a59ed1d8100e737 (diff) |
Patch from Jarkko to fix drand48 to not use long long when
long long support is disabled in the uClibc Config.
Diffstat (limited to 'libc/stdlib/srand48_r.c')
-rw-r--r-- | libc/stdlib/srand48_r.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/stdlib/srand48_r.c b/libc/stdlib/srand48_r.c index c0fa38e90..c7c510864 100644 --- a/libc/stdlib/srand48_r.c +++ b/libc/stdlib/srand48_r.c @@ -32,7 +32,13 @@ int srand48_r (seedval, buffer) buffer->__x[1] = seedval & 0xffffl; buffer->__x[0] = 0x330e; +#ifdef __UCLIBC_HAS_LONG_LONG__ buffer->__a = 0x5deece66dull; +#else + buffer->__a1 = 0x5; + buffer->__a0 = 0xdeece66d; +#endif + buffer->__c = 0xb; buffer->__init = 1; |