2 #include <stdio.h> /* Needed for STDERR_FILENO on Windows */
11 int SetLog(const char *c
)
14 * Redirect stderr on filedescriptor level.
15 * Redirecting on streams level does not work with Android's Bionic
17 int fd
= open(c
, O_WRONLY
|O_CREAT
|O_APPEND
, 0644);
22 if (dup2(fd
, STDERR_FILENO
) == -1)