Skip to content

Commit 17cc630

Browse files
committed
mremap
1 parent 82004ce commit 17cc630

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/dlmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
592592
#define MMAP_CLEARS 1
593593
#endif /* MMAP_CLEARS */
594594
#ifndef HAVE_MREMAP
595-
#if linux && !defined(EMSCRIPTEN)
595+
#if linux
596596
#define HAVE_MREMAP 1
597597
#else /* linux */
598598
#define HAVE_MREMAP 0

system/include/bsd/sys/mman.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ int madvise __P((void *, size_t, int));
155155
int mincore __P((const void *, size_t, char *));
156156
int minherit __P((void *, size_t, int));
157157
#endif
158+
159+
/* XXX Emscripten */
160+
void *mremap(void *old_address, size_t old_size , size_t new_size, unsigned long flags);
161+
158162
__END_DECLS
159163

160164
#endif /* !_KERNEL */

0 commit comments

Comments
 (0)