[vdr-plugin-sudoku] 04/06: Minor fix for GCC-6 (Closes: #831155)

Tobias Grimm tiber-guest at moszumanska.debian.org
Sat Jan 7 11:38:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

tiber-guest pushed a commit to branch master
in repository vdr-plugin-sudoku.

commit af2c526aa6bbbf6aab9e3b7d8ec2b2b5fc19ef76
Author: Tobias Grimm <etobi at debian.org>
Date:   Fri Jul 15 18:52:30 2016 +0200

    Minor fix for GCC-6 (Closes: #831155)
---
 debian/patches/gcc6-fix.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/gcc6-fix.patch b/debian/patches/gcc6-fix.patch
new file mode 100644
index 0000000..cde1e37
--- /dev/null
+++ b/debian/patches/gcc6-fix.patch
@@ -0,0 +1,29 @@
+Description: Fixes build with GCC 6
+ Some includes needed to be re-ordered for GCC6
+Author: Tobias Grimm <etobi at debian.org>
+
+--- a/sudoku.h
++++ b/sudoku.h
+@@ -21,8 +21,12 @@
+ #ifndef VDR_SUDOKU_H
+ #define VDR_SUDOKU_H
+ 
+-#include <vector>
++#ifdef USE_RAND
++#include <stdlib.h>
++#include <time.h>
++#endif // USE_RAND
+ 
++#include <vector>
+ 
+ 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)
+   {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2717af8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gcc6-fix.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr-plugin-sudoku.git



More information about the pkg-vdr-dvb-changes mailing list