diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
commit | 1b816ea846aca3ee89e7995373ace609e9518424 (patch) | |
tree | b41cdc8495cae7fa9c2e0f98a5f2e71656b61f9a /openbsd-compat/daemon.c | |
parent | fa585019a79ebcb4e0202b1c33f87ff1c5c9ce1c (diff) | |
parent | 086ea76990b1e6287c24b6db74adffd4605eb3b0 (diff) |
import openssh-4.6p1-gsskex-20070312.patch
Diffstat (limited to 'openbsd-compat/daemon.c')
-rw-r--r-- | openbsd-compat/daemon.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsd-compat/daemon.c b/openbsd-compat/daemon.c index f8a0680bf..e3a6886bd 100644 --- a/openbsd-compat/daemon.c +++ b/openbsd-compat/daemon.c | |||
@@ -34,6 +34,20 @@ | |||
34 | 34 | ||
35 | #ifndef HAVE_DAEMON | 35 | #ifndef HAVE_DAEMON |
36 | 36 | ||
37 | #include <sys/types.h> | ||
38 | |||
39 | #ifdef HAVE_SYS_STAT_H | ||
40 | # include <sys/stat.h> | ||
41 | #endif | ||
42 | |||
43 | #ifdef HAVE_FCNTL_H | ||
44 | # include <fcntl.h> | ||
45 | #endif | ||
46 | |||
47 | #ifdef HAVE_UNISTD_H | ||
48 | # include <unistd.h> | ||
49 | #endif | ||
50 | |||
37 | int | 51 | int |
38 | daemon(int nochdir, int noclose) | 52 | daemon(int nochdir, int noclose) |
39 | { | 53 | { |