fix a bug #43984: tcc -run reports errno=2
commitcde79a805e673b21bd2aa2fc916975f423f8ccf6
authorseyko <seyko2@gmail.com>
Wed, 25 Mar 2015 10:26:11 +0000 (25 13:26 +0300)
committerseyko <seyko2@gmail.com>
Wed, 25 Mar 2015 10:26:11 +0000 (25 13:26 +0300)
treefd3c6e56ddef6370f5c9dad25a5500c58918b724
parent724425addf52e16e8410730d52617311f14c9cfc
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 <errno.h>
    #include <stdio.h>
    int main(void) { printf("errno=%d\n", errno); return 0; }
tccrun.c