diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-07-11 18:00:06 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-07-11 18:00:06 +1000 |
commit | 44c828fe29e61126ae5ff9e71e1a76a55f5fa34b (patch) | |
tree | d97bc573b20cd7d0ab9ad1270dfff7ef59fbaa32 /openbsd-compat | |
parent | 4e880e632be69861af52a90dcdf337deb60ca536 (diff) |
- (dtucker) [configure.ac ssh-keygen.c openbsd-compat/bsd-openpty.c
openbsd-compat/daemon.c] Add includes needed by open(2). Conditionally
include paths.h. Fixes build error on Solaris.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 10 | ||||
-rw-r--r-- | openbsd-compat/daemon.c | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index 28929de67..0b77a1da9 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -35,6 +35,16 @@ | |||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | #if !defined(HAVE_OPENPTY) | 36 | #if !defined(HAVE_OPENPTY) |
37 | 37 | ||
38 | #include <sys/types.h> | ||
39 | |||
40 | #ifdef HAVE_SYS_STAT_H | ||
41 | # include <sys/stat.h> | ||
42 | #endif | ||
43 | |||
44 | #ifdef HAVE_FCNTL_H | ||
45 | # include <fcntl.h> | ||
46 | #endif | ||
47 | |||
38 | #ifdef HAVE_UTIL_H | 48 | #ifdef HAVE_UTIL_H |
39 | # include <util.h> | 49 | # include <util.h> |
40 | #endif /* HAVE_UTIL_H */ | 50 | #endif /* HAVE_UTIL_H */ |
diff --git a/openbsd-compat/daemon.c b/openbsd-compat/daemon.c index f8a0680bf..f380139d3 100644 --- a/openbsd-compat/daemon.c +++ b/openbsd-compat/daemon.c | |||
@@ -34,6 +34,16 @@ | |||
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 | |||
37 | int | 47 | int |
38 | daemon(int nochdir, int noclose) | 48 | daemon(int nochdir, int noclose) |
39 | { | 49 | { |