diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-28 09:59:59 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-28 09:59:59 -0600 |
commit | eeb7e04da64fdae3a40b1afdcde71dcded2481f3 (patch) | |
tree | d968a71505b92c86a78b435f72752884a9435f92 /src/glx | |
parent | 151e0c0aeaa78f4eb6a87d2b3dd86b4807db1523 (diff) | |
parent | d09941c8cc2d4620eb774744c8878921b9dc3bcc (diff) | |
download | external_mesa3d-eeb7e04da64fdae3a40b1afdcde71dcded2481f3.zip external_mesa3d-eeb7e04da64fdae3a40b1afdcde71dcded2481f3.tar.gz external_mesa3d-eeb7e04da64fdae3a40b1afdcde71dcded2481f3.tar.bz2 |
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/x11/glxhash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glx/x11/glxhash.c b/src/glx/x11/glxhash.c index 6f2c51d..b76ec32 100644 --- a/src/glx/x11/glxhash.c +++ b/src/glx/x11/glxhash.c @@ -88,6 +88,12 @@ #define HASH_ALLOC malloc #define HASH_FREE free +#ifndef __GLIBC__ +#define HASH_RANDOM_DECL char *ps, rs[256] +#define HASH_RANDOM_INIT(seed) ps = initstate(seed, rs, sizeof(rs)) +#define HASH_RANDOM random() +#define HASH_RANDOM_DESTROY setstate(ps) +#else #define HASH_RANDOM_DECL struct random_data rd; int32_t rv; char rs[256] #define HASH_RANDOM_INIT(seed) \ do { \ @@ -96,6 +102,7 @@ } while(0) #define HASH_RANDOM ((void) random_r(&rd, &rv), rv) #define HASH_RANDOM_DESTROY +#endif typedef struct __glxHashBucket { |