aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccrun.c b/tccrun.c
index 80d1834..64a1dfd 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -58,13 +58,13 @@ LIBTCCAPI int tcc_relocate(TCCState *s1)
s1->write_mem = mmap (NULL, ret, PROT_READ|PROT_WRITE,
MAP_SHARED, fd, 0);
if(s1->write_mem == MAP_FAILED){
- error("/tmp not writeable");
+ tcc_error("/tmp not writeable");
return -1;
}
s1->runtime_mem = mmap (NULL, ret, PROT_READ|PROT_EXEC,
MAP_SHARED, fd, 0);
if(s1->runtime_mem == MAP_FAILED){
- error("/tmp not executable");
+ tcc_error("/tmp not executable");
return -1;
}
ret = tcc_relocate_ex(s1, s1->write_mem);