aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/sim-main.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1997-05-19 23:02:30 +0000
committerMichael Meissner <gnu@the-meissners.org>1997-05-19 23:02:30 +0000
commit8c5b6ead7d2880ce708ee185ce3506cda1aeff4d (patch)
tree2290bff85b6e809a587e49f04ea2f64ce9ff7955 /sim/tic80/sim-main.h
parent2aec653f17a6f02608cee5863223034d0395198b (diff)
downloadbinutils-8c5b6ead7d2880ce708ee185ce3506cda1aeff4d.zip
binutils-8c5b6ead7d2880ce708ee185ce3506cda1aeff4d.tar.gz
binutils-8c5b6ead7d2880ce708ee185ce3506cda1aeff4d.tar.bz2
Make getpid, kill supported system calls
Diffstat (limited to 'sim/tic80/sim-main.h')
-rw-r--r--sim/tic80/sim-main.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/tic80/sim-main.h b/sim/tic80/sim-main.h
index bb7aad0..3b06723 100644
--- a/sim/tic80/sim-main.h
+++ b/sim/tic80/sim-main.h
@@ -26,6 +26,7 @@
#include "sim-basics.h"
#include <signal.h>
+#include <errno.h>
/* These are generated files. */
#include "itable.h"
@@ -69,4 +70,11 @@ extern void engine_init
(SIM_DESC sd);
+#ifndef HAVE_GETPID
+#define getpid() 42
+#endif
+
+#ifndef HAVE_KILL
+#define kill() (errno = EINVAL, -1)
+#endif
#endif