aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index f773de1..39d068c 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -544,11 +544,16 @@ os_getpid (host_callback *p)
static int
os_kill (host_callback *p, int pid, int signum)
{
+#ifdef HAVE_KILL
int result;
result = kill (pid, signum);
p->last_errno = errno;
return result;
+#else
+ p->last_errno = ENOSYS;
+ return -1;
+#endif
}
static int