From cd1816c9b144cd92c81969770a5a5eb9621bcd64 Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Sun, 21 Aug 2016 19:23:45 -0400 Subject: [PATCH] Enable raw mode access for VM interactions --- makefile | 4 ++-- tty.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 9962e86..987d69f 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,10 @@ all: libvm vm libvm: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c - gcc -ggdb -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c + gcc -ggdb -Dtty_lib=true -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c vm: vm.h vm.c vm_instructions.c vm_decode.c tty.c - gcc -ggdb vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm + gcc -ggdb -Dtty_lib=true vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm production: libvm-production vm-production diff --git a/tty.c b/tty.c index f65b666..c020d42 100644 --- a/tty.c +++ b/tty.c @@ -8,8 +8,6 @@ * wish to use. Please note that they contain bugs * ****************************************************/ -#define tty_lib true - /* In order to restore at exit.*/ static struct termios orig_termios;