summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/basename.c1
-rw-r--r--openbsd-compat/bsd-closefrom.c2
-rw-r--r--openbsd-compat/bsd-cray.c4
-rw-r--r--openbsd-compat/bsd-openpty.c2
-rw-r--r--openbsd-compat/bsd-snprintf.c2
-rw-r--r--openbsd-compat/fake-rfc2553.c1
-rw-r--r--openbsd-compat/port-aix.c2
-rw-r--r--openbsd-compat/port-irix.c3
-rw-r--r--openbsd-compat/rresvport.c1
9 files changed, 17 insertions, 1 deletions
diff --git a/openbsd-compat/basename.c b/openbsd-compat/basename.c
index ad040e139..4b10cb84b 100644
--- a/openbsd-compat/basename.c
+++ b/openbsd-compat/basename.c
@@ -20,6 +20,7 @@
20 20
21#include "includes.h" 21#include "includes.h"
22#ifndef HAVE_BASENAME 22#ifndef HAVE_BASENAME
23#include <string.h>
23 24
24char * 25char *
25basename(const char *path) 26basename(const char *path)
diff --git a/openbsd-compat/bsd-closefrom.c b/openbsd-compat/bsd-closefrom.c
index 7509d2835..3f17302d1 100644
--- a/openbsd-compat/bsd-closefrom.c
+++ b/openbsd-compat/bsd-closefrom.c
@@ -25,6 +25,8 @@
25#include <limits.h> 25#include <limits.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <stddef.h> 27#include <stddef.h>
28#include <string.h>
29#include <unistd.h>
28#ifdef HAVE_DIRENT_H 30#ifdef HAVE_DIRENT_H
29# include <dirent.h> 31# include <dirent.h>
30# define NAMLEN(dirent) strlen((dirent)->d_name) 32# define NAMLEN(dirent) strlen((dirent)->d_name)
diff --git a/openbsd-compat/bsd-cray.c b/openbsd-compat/bsd-cray.c
index d1f1c059c..8093f6d54 100644
--- a/openbsd-compat/bsd-cray.c
+++ b/openbsd-compat/bsd-cray.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * $Id: bsd-cray.c,v 1.14 2005/02/02 06:10:11 dtucker Exp $ 2 * $Id: bsd-cray.c,v 1.15 2006/07/24 05:08:36 djm Exp $
3 * 3 *
4 * bsd-cray.c 4 * bsd-cray.c
5 * 5 *
@@ -53,6 +53,8 @@
53#include <sys/stat.h> 53#include <sys/stat.h>
54#include <sys/session.h> 54#include <sys/session.h>
55#include <stdlib.h> 55#include <stdlib.h>
56#include <string.h>
57#include <unistd.h>
56#include <pwd.h> 58#include <pwd.h>
57#include <fcntl.h> 59#include <fcntl.h>
58#include <errno.h> 60#include <errno.h>
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index 0b77a1da9..a2f2fda60 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -57,6 +57,8 @@
57#endif 57#endif
58 58
59#include <signal.h> 59#include <signal.h>
60#include <string.h>
61#include <unistd.h>
60 62
61#ifndef O_NOCTTY 63#ifndef O_NOCTTY
62#define O_NOCTTY 0 64#define O_NOCTTY 0
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c
index c30cd1223..9fdf4d3f0 100644
--- a/openbsd-compat/bsd-snprintf.c
+++ b/openbsd-compat/bsd-snprintf.c
@@ -108,6 +108,8 @@
108 108
109#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) 109#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
110 110
111#include <string.h>
112
111#ifdef HAVE_LONG_DOUBLE 113#ifdef HAVE_LONG_DOUBLE
112# define LDOUBLE long double 114# define LDOUBLE long double
113#else 115#else
diff --git a/openbsd-compat/fake-rfc2553.c b/openbsd-compat/fake-rfc2553.c
index aae016bf7..08a7cb66c 100644
--- a/openbsd-compat/fake-rfc2553.c
+++ b/openbsd-compat/fake-rfc2553.c
@@ -36,6 +36,7 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39#include <string.h>
39 40
40#ifndef HAVE_GETNAMEINFO 41#ifndef HAVE_GETNAMEINFO
41int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 42int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index 6fd593aad..2d56e7e4a 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -38,6 +38,8 @@
38# include <netdb.h> 38# include <netdb.h>
39#endif 39#endif
40#include <uinfo.h> 40#include <uinfo.h>
41#include <string.h>
42#include <unistd.h>
41#include <sys/socket.h> 43#include <sys/socket.h>
42#include "port-aix.h" 44#include "port-aix.h"
43 45
diff --git a/openbsd-compat/port-irix.c b/openbsd-compat/port-irix.c
index aa6db1cf8..eaa91a4b5 100644
--- a/openbsd-compat/port-irix.c
+++ b/openbsd-compat/port-irix.c
@@ -29,6 +29,9 @@
29 defined(WITH_IRIX_JOBS) || \ 29 defined(WITH_IRIX_JOBS) || \
30 defined(WITH_IRIX_ARRAY) 30 defined(WITH_IRIX_ARRAY)
31 31
32#include <unistd.h>
33#include <string.h>
34
32#ifdef WITH_IRIX_PROJECT 35#ifdef WITH_IRIX_PROJECT
33# include <proj.h> 36# include <proj.h>
34#endif /* WITH_IRIX_PROJECT */ 37#endif /* WITH_IRIX_PROJECT */
diff --git a/openbsd-compat/rresvport.c b/openbsd-compat/rresvport.c
index fc029f46f..c10391872 100644
--- a/openbsd-compat/rresvport.c
+++ b/openbsd-compat/rresvport.c
@@ -36,6 +36,7 @@
36#ifndef HAVE_RRESVPORT_AF 36#ifndef HAVE_RRESVPORT_AF
37 37
38#include <errno.h> 38#include <errno.h>
39#include <string.h>
39 40
40#if 0 41#if 0
41int 42int