diff options
Diffstat (limited to 'src/daemon.h')
-rw-r--r-- | src/daemon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h index 1332eaf48..a29945607 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -56,8 +56,13 @@ daemonize_kill(void) /** * Close stdin (fd 0) and re-open it as /dev/null. */ +#ifndef WIN32 void daemonize_close_stdin(void); +#else +static inline void +daemonize_close_stdin(void) {} +#endif /** * Change to the configured Unix user. |