summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile2
-rw-r--r--unix/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 17a680a13b..3ff32cd85c 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -3,7 +3,7 @@ BUILD=build
CC = gcc
CFLAGS = -I. -I$(PYSRC) -Wall -Werror -ansi -std=gnu99 -Os -DUSE_READLINE #-DNDEBUG
-LDFLAGS = -lm
+LDFLAGS = -lm -ltermcap
SRC_C = \
main.c \
diff --git a/unix/main.c b/unix/main.c
index 79fe1b5153..376dbc0c04 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "nlr.h"
#include "misc.h"