mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 11:12:51 -06:00
Fix (most) macOS compilation problems
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "data.h"
|
||||
|
||||
@@ -589,7 +591,7 @@ object PgfDB::malloc_internal(size_t bytes)
|
||||
invoked all that often in most programs. And the programs that
|
||||
it is called frequently in otherwise tend to fragment.
|
||||
*/
|
||||
|
||||
|
||||
idx = largebin_index(nb);
|
||||
if (ms->have_fastchunks)
|
||||
malloc_consolidate(ms);
|
||||
|
||||
Reference in New Issue
Block a user