deskutils/subsurface: Fix build on older FreeBSD versions

On FreeBSD 12.3, build fail with:

In file included from /wrkdirs/usr/ports/deskutils/subsurface/work/subsurface-5.0.10/core/exif.cpp:32:
/wrkdirs/usr/ports/deskutils/subsurface/work/subsurface-5.0.10/core/exif.h:128:3: error: unknown type name 'time_t'
  time_t epoch();
        ^
1 error generated.

Explicitly add time.h to headers which use time_t to avoid the issue.
This should not have an impact where the package could be build so not
bumping PORTREVISION.
This commit is contained in:
Romain Tartière 2022-12-18 19:53:19 -10:00
parent b2dc69c015
commit 192f643ab4
No known key found for this signature in database
GPG key ID: BA4D1D955112336F
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- core/exif.h.orig 2022-12-19 04:30:05 UTC
+++ core/exif.h
@@ -36,6 +36,7 @@
#define __EXIF_H
#include <string>
+#include <time.h>
namespace easyexif {

View file

@ -0,0 +1,10 @@
--- core/parse-gpx.h.orig 2022-12-19 05:04:53 UTC
+++ core/parse-gpx.h
@@ -3,6 +3,7 @@
#define PARSE_GPX_H
#include <QString>
+#include <time.h>
struct dive_coords { // This structure holds important information after parsing the GPX file:
time_t start_dive; // Start time of the current dive, obtained using current_dive (local time)