summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-sudoku/files/vdr-sudoku-0.3.5_gcc6.patch
blob: fa6bed6fd3489207d949403a1b596e9837dfaa95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
compile fix gcc-6
https://bugs.gentoo.org/show_bug.cgi?id=594322
Signed-of-by: Peter Levin <plevine457@gmail.com> 
Signed-of-by: Joerg  Bornkessel <hd_brummy@gentoo.org> ( 2016/Sep/29 )
--- sudoku-0.3.5/sudoku.h.old	2016-09-25 17:47:23.689678251 -0400
+++ sudoku-0.3.5/sudoku.h	2016-09-25 17:47:29.014272651 -0400
@@ -23,6 +23,10 @@
 
 #include <vector>
 
+#ifdef USE_RAND
+#include <stdlib.h>
+#include <time.h>
+#endif // USE_RAND
 
 namespace Sudoku
 {
@@ -32,8 +36,6 @@
 
 
 #ifdef USE_RAND
-#include <stdlib.h>
-#include <time.h>
   /** Random number 0 .. max-1 */
   static unsigned int rand(unsigned int max)
   {