tags 777862 + patch
thanks
Here's a fix for the GCC 5 build issue. I added "extern" to the callable
copy of the inline function to ensure an externally visible function is
emitted, please see section "Different semantics for inline functions"
at https://gcc.gnu.org/gcc-5/porting_to.html for more background.
--
Greg Pearson
Linux for HP Helion
--- a/util.c 2015-07-06 22:33:42.535440467 +0000
+++ b/util.c 2015-07-06 22:33:25.575439874 +0000
@@ -10,7 +10,7 @@
#include <stdlib.h>
-inline long rand_long(long max)
+extern inline long rand_long(long max)
/* return random long from [0;max[ */
{
return (long) (((double)max)*rand()/(RAND_MAX+1.0));