fixed build with OpenBSD

This commit is contained in:
Vlad Glagolev 2016-10-22 16:38:45 -04:00
parent e9d3278fc5
commit b68381db58
2 changed files with 3 additions and 1 deletions

View file

@ -75,10 +75,12 @@ namespace i2p
return false;
}
#if !defined(__OpenBSD__)
// point std{in,out,err} descriptors to /dev/null
stdin = freopen("/dev/null", "r", stdin);
stdout = freopen("/dev/null", "w", stdout);
stderr = freopen("/dev/null", "w", stderr);
#endif
}
// Pidfile