freebsd-ports/misc/xpns/files/patch-simget.c
Martin Wilke 47b14d783b - Fix build with clang
- Support PLIST_FILES

PR:		179226
Submitted by:	ports fury
2013-06-04 10:04:47 +00:00

22 lines
343 B
C

--- simget.c.orig
+++ simget.c
@@ -19,8 +19,9 @@
#include <stdio.h>
-
-#define RAND_MAX ((1<<31)-1)
+#ifndef RAND_MAX
+#define RAND_MAX ((1UL<<31)-1)
+#endif
/*************************************************************************
@@ -32,6 +33,7 @@ void SimGetInit()
unsigned int e;
srand( 17);
+ srandom( 17);
}