File: g%2B%2B-12-fix.patch

package info (click to toggle)
metview 5.26.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 614,356 kB
  • sloc: cpp: 560,586; ansic: 44,641; xml: 19,933; f90: 17,984; sh: 7,454; python: 5,565; yacc: 2,318; lex: 1,372; perl: 701; makefile: 88
file content (16 lines) | stat: -rw-r--r-- 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix FTBFS with g++ 12. 
Author: Alastair McKinstry <mckinstry@debian.org>
Bug-Origin: https://bugs.debian.org/1016239
Forwarded: no
Last-Updated: 2022-07-30

--- a/mars-client/src/tools/DateTime.h
+++ b/mars-client/src/tools/DateTime.h
@@ -31,6 +31,7 @@
     DateTime(const std::string&);
     DateTime(double);
 
+#include <ctime>
 
     ~DateTime() {}