diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bindresvport.c | 2 | ||||
-rw-r--r-- | openbsd-compat/glob.c | 2 | ||||
-rw-r--r-- | openbsd-compat/mktemp.c | 2 | ||||
-rw-r--r-- | openbsd-compat/port-tun.c | 1 | ||||
-rw-r--r-- | openbsd-compat/readpassphrase.c | 1 | ||||
-rw-r--r-- | openbsd-compat/strtonum.c | 1 |
6 files changed, 9 insertions, 0 deletions
diff --git a/openbsd-compat/bindresvport.c b/openbsd-compat/bindresvport.c index 7f48fd03a..2c16233c9 100644 --- a/openbsd-compat/bindresvport.c +++ b/openbsd-compat/bindresvport.c | |||
@@ -36,6 +36,8 @@ | |||
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | 38 | ||
39 | #include <errno.h> | ||
40 | |||
39 | #define STARTPORT 600 | 41 | #define STARTPORT 600 |
40 | #define ENDPORT (IPPORT_RESERVED - 1) | 42 | #define ENDPORT (IPPORT_RESERVED - 1) |
41 | #define NPORTS (ENDPORT - STARTPORT + 1) | 43 | #define NPORTS (ENDPORT - STARTPORT + 1) |
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c index 439d2f50d..bba4c0976 100644 --- a/openbsd-compat/glob.c +++ b/openbsd-compat/glob.c | |||
@@ -34,10 +34,12 @@ | |||
34 | /* OPENBSD ORIGINAL: lib/libc/gen/glob.c */ | 34 | /* OPENBSD ORIGINAL: lib/libc/gen/glob.c */ |
35 | 35 | ||
36 | #include "includes.h" | 36 | #include "includes.h" |
37 | |||
37 | #include <sys/types.h> | 38 | #include <sys/types.h> |
38 | #include <sys/stat.h> | 39 | #include <sys/stat.h> |
39 | #include <dirent.h> | 40 | #include <dirent.h> |
40 | #include <ctype.h> | 41 | #include <ctype.h> |
42 | #include <errno.h> | ||
41 | #include <pwd.h> | 43 | #include <pwd.h> |
42 | 44 | ||
43 | static long | 45 | static long |
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c index 75a339156..b8b0793a6 100644 --- a/openbsd-compat/mktemp.c +++ b/openbsd-compat/mktemp.c | |||
@@ -37,8 +37,10 @@ | |||
37 | 37 | ||
38 | #include <sys/types.h> | 38 | #include <sys/types.h> |
39 | #include <sys/stat.h> | 39 | #include <sys/stat.h> |
40 | |||
40 | #include <fcntl.h> | 41 | #include <fcntl.h> |
41 | #include <ctype.h> | 42 | #include <ctype.h> |
43 | #include <errno.h> | ||
42 | 44 | ||
43 | #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) | 45 | #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) |
44 | 46 | ||
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c index bee6b160c..9806eec7d 100644 --- a/openbsd-compat/port-tun.c +++ b/openbsd-compat/port-tun.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <netinet/in.h> | 21 | #include <netinet/in.h> |
22 | #include <netinet/ip.h> | 22 | #include <netinet/ip.h> |
23 | 23 | ||
24 | #include <errno.h> | ||
24 | #include <fcntl.h> | 25 | #include <fcntl.h> |
25 | 26 | ||
26 | #include "log.h" | 27 | #include "log.h" |
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c index 95c0af815..fd9731ac6 100644 --- a/openbsd-compat/readpassphrase.c +++ b/openbsd-compat/readpassphrase.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <ctype.h> | 31 | #include <ctype.h> |
32 | #include <fcntl.h> | 32 | #include <fcntl.h> |
33 | #include <readpassphrase.h> | 33 | #include <readpassphrase.h> |
34 | #include <errno.h> | ||
34 | 35 | ||
35 | #ifdef TCSASOFT | 36 | #ifdef TCSASOFT |
36 | # define _T_FLUSH (TCSAFLUSH|TCSASOFT) | 37 | # define _T_FLUSH (TCSAFLUSH|TCSASOFT) |
diff --git a/openbsd-compat/strtonum.c b/openbsd-compat/strtonum.c index 8ad0d0058..35c5c18b9 100644 --- a/openbsd-compat/strtonum.c +++ b/openbsd-compat/strtonum.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "includes.h" | 22 | #include "includes.h" |
23 | #ifndef HAVE_STRTONUM | 23 | #ifndef HAVE_STRTONUM |
24 | #include <limits.h> | 24 | #include <limits.h> |
25 | #include <errno.h> | ||
25 | 26 | ||
26 | #define INVALID 1 | 27 | #define INVALID 1 |
27 | #define TOOSMALL 2 | 28 | #define TOOSMALL 2 |