diff options
Diffstat (limited to 'src/pkg/runtime/os_dragonfly.c')
-rw-r--r-- | src/pkg/runtime/os_dragonfly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/os_dragonfly.c b/src/pkg/runtime/os_dragonfly.c index ce5307af07..1132f5741d 100644 --- a/src/pkg/runtime/os_dragonfly.c +++ b/src/pkg/runtime/os_dragonfly.c @@ -207,7 +207,7 @@ uintptr runtime·memlimit(void) { Rlimit rl; - extern byte text[], end[]; + extern byte runtime·text[], runtime·end[]; uintptr used; if(runtime·getrlimit(RLIMIT_AS, &rl) != 0) @@ -218,7 +218,7 @@ runtime·memlimit(void) // Estimate our VM footprint excluding the heap. // Not an exact science: use size of binary plus // some room for thread stacks. - used = end - text + (64<<20); + used = runtime·end - runtime·text + (64<<20); if(used >= rl.rlim_cur) return 0; |