[Gc] [PATCH] random() is supported by all variants of glibc systems

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Aug 8 16:02:22 PDT 2007


Hi,

The random() function is provided by the glibc itself, so it is
available on all variants of glibc systems (GNU/linux, GNU/*bsd,
GNU/Hurd, ...). Here is a patch.

Samuel
-------------- next part --------------
Index: dbg_mlc.c
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/dbg_mlc.c,v
retrieving revision 1.7
diff -u -r1.7 dbg_mlc.c
--- dbg_mlc.c	4 Aug 2007 06:26:29 -0000	1.7
+++ dbg_mlc.c	8 Aug 2007 23:00:28 -0000
@@ -61,7 +61,7 @@
 
 # include <stdlib.h>
 
-# if defined(LINUX) || defined(SOLARIS) \
+# if defined(__GLIBC__) || defined(SOLARIS) \
      || defined(HPUX) || defined(IRIX5) || defined(OSF1)
 #   define RANDOM() random()
 # else


More information about the Gc mailing list