From cde79a805e673b21bd2aa2fc916975f423f8ccf6 Mon Sep 17 00:00:00 2001 From: seyko Date: Wed, 25 Mar 2015 13:26:11 +0300 Subject: [PATCH] fix a bug #43984: tcc -run reports errno=2 The following program (errno.c) reports errno=2 when run using "tcc -run errno.c" #include #include int main(void) { printf("errno=%d\n", errno); return 0; } --- tccrun.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tccrun.c b/tccrun.c index 8f7257d7..8e53a70e 100644 --- a/tccrun.c +++ b/tccrun.c @@ -127,6 +127,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) for (i=0; i