mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 08:26:27 -04:00
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
17 lines
457 B
C++
17 lines
457 B
C++
--- 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);
|