main: dprintf isn't part of the IEEE POSIX standard. Just use write().
This commit is contained in:
parent
9f445a793d
commit
ad4b6097c0
1 changed files with 3 additions and 2 deletions
|
@ -748,10 +748,11 @@ int main(int argc, char ** argv) {
|
||||||
// Stream Output Token To Standard Output
|
// Stream Output Token To Standard Output
|
||||||
fprintf(stdout, "%s", token_str.c_str());
|
fprintf(stdout, "%s", token_str.c_str());
|
||||||
} else if (!params.ctrl_token_no_out) {
|
} else if (!params.ctrl_token_no_out) {
|
||||||
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
|
#ifndef _MSC_VER
|
||||||
if (params.ctrl_token_fd_out) {
|
if (params.ctrl_token_fd_out) {
|
||||||
// Stream Control Token To Special Token Output. Useful for debugging control token behaviour
|
// Stream Control Token To Special Token Output. Useful for debugging control token behaviour
|
||||||
dprintf(CONTROL_TOKEN_FILE_DESCRIPTOR, "%s", token_str.c_str());
|
ssize_t result = write(CONTROL_TOKEN_FILE_DESCRIPTOR, token_str.c_str(), token_str.length());
|
||||||
|
(void) result;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue