summaryrefslogtreecommitdiff
path: root/databases/grass7/files/patch-raster_r.terraflow_stats.h
diff options
context:
space:
mode:
authorLoïc Bartoletti <lbartoletti@FreeBSD.org>2021-02-07 18:14:38 +0000
committerLoïc Bartoletti <lbartoletti@FreeBSD.org>2021-02-07 18:14:38 +0000
commit7413681f8c41c1eb6baeac8ad0e68944b417f329 (patch)
treef6362444377081ab5c77531f4d238884c88a50c3 /databases/grass7/files/patch-raster_r.terraflow_stats.h
parentIntroduce MANPAGES option; cleanup port (typo, remove unused gnome bit). (diff)
databases/grass7: remove use of sbrk
sbrk is deprecated and is not present on some architectures. There is only one use of this function in grass for the r.terraflow module. Its use will be removed in the next version, so I integrate this patch now to use it on architectures that don't have sbrk. Thanks to mikael@ for the tests on aarch64
Notes
Notes: svn path=/head/; revision=564633
Diffstat (limited to 'databases/grass7/files/patch-raster_r.terraflow_stats.h')
-rw-r--r--databases/grass7/files/patch-raster_r.terraflow_stats.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/grass7/files/patch-raster_r.terraflow_stats.h b/databases/grass7/files/patch-raster_r.terraflow_stats.h
new file mode 100644
index 000000000000..6e9013c22069
--- /dev/null
+++ b/databases/grass7/files/patch-raster_r.terraflow_stats.h
@@ -0,0 +1,17 @@
+--- raster/r.terraflow/stats.h.orig 2020-12-21 18:40:15 UTC
++++ raster/r.terraflow/stats.h
+@@ -35,14 +35,11 @@ int noclobberFile(char *);
+ class statsRecorder : public ofstream {
+ private:
+ Rtimer tm;
+- void *bss;
+ public:
+ statsRecorder(char *fname);
+ ~statsRecorder() {
+ this->flush();
+ }
+- char *freeMem(char *);
+- long freeMem();
+ char *timestamp();
+ void timestamp(const char *s);
+ void comment(const char *s, const int verbose=1);