Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ STATIC=
#PROFILE=-pg
PROFILE=

COPTS=-c -Wall -Wextra -std=c11 -DOS_LINUX $(PROFILE) -flto
COPTS=-c -Wall -Wextra -std=c11 -DOS_LINUX -D_XOPEN_SOURCE=700 $(PROFILE) -flto
ifeq ($(OPSYS),macos)
COPTS+=-Oz -I/usr/local/opt/readline/include
else
Expand Down
3 changes: 2 additions & 1 deletion src/pdclinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>

#include <readline/readline.h>
#include <readline/history.h>
Expand Down Expand Up @@ -548,7 +549,7 @@ PUBLIC void sys_sys_exp(struct exp_list *exproot, void **result, enum
"SYS(sbrk) takes no further parameters");

*result = cell_alloc(INT_CPOOL);
**( (long **) result )=(long)sbrk(0);
**( (long **) result )=(long)malloc(0);
*type = V_INT;
} else if (strcmp(cmd, "now") == 0) {
if (exproot->next)
Expand Down