From bc46671a9bcacca1e2fab1dd6468e72d954230bf Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Aug 2002 13:02:13 +0000 Subject: Patch from Jarkko to fix drand48 to not use long long when long long support is disabled in the uClibc Config. --- libc/stdlib/srand48_r.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/stdlib/srand48_r.c') 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; -- cgit v1.2.3