aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 1335ef1a..7ca19ff8 100644
--- a/daemon.c
+++ b/daemon.c
@@ -32,6 +32,7 @@
#include <unix.h>
#endif
+#if !defined(HAVE_SETSID) && defined(SIGTSTP)
#if defined(HAVE_TERMIOS_H)
# include <termios.h> /* for TIOCNOTTY under Linux */
#endif
@@ -39,6 +40,7 @@
#if !defined(TIOCNOTTY) && defined(HAVE_SGTTY_H)
# include <sgtty.h> /* for TIOCNOTTY under NEXTSTEP */
#endif
+#endif /* !defined(HAVE_SETSID) && defined(SIGTSTP) */
/* BSD portability hack */
#if !defined(SIGCHLD) && defined(SIGCLD)