This fixes a problem with my previous change, uncovered by testing with -Werror. --- tests/test-accept.c | 1 + tests/test-accept4.c | 1 + tests/test-bind.c | 1 + tests/test-connect.c | 1 + tests/test-dprintf.c | 1 + tests/test-fchmod.c | 1 + tests/test-fchmodat.c | 1 + tests/test-fdopen.c | 1 + tests/test-fstat.c | 1 + tests/test-getpeername.c | 1 + tests/test-getsockname.c | 1 + tests/test-grantpt.c | 1 + tests/test-ioctl.c | 1 + tests/test-listen.c | 1 + tests/test-recv.c | 1 + tests/test-recvfrom.c | 1 + tests/test-send.c | 1 + tests/test-sendto.c | 1 + tests/test-setsockopt.c | 1 + tests/test-shutdown.c | 1 + tests/test-unlockpt.c | 1 + tests/test-vdprintf.c | 1 + 22 files changed, 22 insertions(+)
diff --git a/tests/test-accept.c b/tests/test-accept.c index 2dec5b0..2af98af 100644 --- a/tests/test-accept.c +++ b/tests/test-accept.c @@ -23,6 +23,7 @@ SIGNATURE_CHECK (accept, int, (int, struct sockaddr *, socklen_t *)); #include <errno.h> #include <netinet/in.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-accept4.c b/tests/test-accept4.c index 05a56ce..99f901b 100644 --- a/tests/test-accept4.c +++ b/tests/test-accept4.c @@ -24,6 +24,7 @@ SIGNATURE_CHECK (accept4, int, (int, struct sockaddr *, socklen_t *, int)); #include <errno.h> #include <fcntl.h> #include <netinet/in.h> +#include <unistd.h> #include "binary-io.h" #include "sockets.h" diff --git a/tests/test-bind.c b/tests/test-bind.c index 1e8fa29..fe85410 100644 --- a/tests/test-bind.c +++ b/tests/test-bind.c @@ -24,6 +24,7 @@ SIGNATURE_CHECK (bind, int, (int, const struct sockaddr *, socklen_t)); #include <errno.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-connect.c b/tests/test-connect.c index 4527730..a1cd5f1 100644 --- a/tests/test-connect.c +++ b/tests/test-connect.c @@ -24,6 +24,7 @@ SIGNATURE_CHECK (connect, int, (int, const struct sockaddr *, socklen_t)); #include <errno.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-dprintf.c b/tests/test-dprintf.c index 8981107..b70e91c 100644 --- a/tests/test-dprintf.c +++ b/tests/test-dprintf.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (dprintf, int, (int, const char *, ...)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-fchmod.c b/tests/test-fchmod.c index bf576b6..6a33440 100644 --- a/tests/test-fchmod.c +++ b/tests/test-fchmod.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (fchmod, int, (int, mode_t)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-fchmodat.c b/tests/test-fchmodat.c index ed35c1b..082f2b4 100644 --- a/tests/test-fchmodat.c +++ b/tests/test-fchmodat.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (fchmodat, int, (int, const char *, mode_t, int)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-fdopen.c b/tests/test-fdopen.c index 5603616..671c5e3 100644 --- a/tests/test-fdopen.c +++ b/tests/test-fdopen.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (fdopen, FILE *, (int, const char *)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-fstat.c b/tests/test-fstat.c index 0f63229..8ce1527 100644 --- a/tests/test-fstat.c +++ b/tests/test-fstat.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (fstat, int, (int, struct stat *)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-getpeername.c b/tests/test-getpeername.c index bd82e96..fa858fa 100644 --- a/tests/test-getpeername.c +++ b/tests/test-getpeername.c @@ -23,6 +23,7 @@ SIGNATURE_CHECK (getpeername, int, (int, struct sockaddr *, socklen_t *)); #include <errno.h> #include <netinet/in.h> +#include <unistd.h.> #include "sockets.h" #include "macros.h" diff --git a/tests/test-getsockname.c b/tests/test-getsockname.c index 617b0a7..945e2ed 100644 --- a/tests/test-getsockname.c +++ b/tests/test-getsockname.c @@ -23,6 +23,7 @@ SIGNATURE_CHECK (getsockname, int, (int, struct sockaddr *, socklen_t *)); #include <errno.h> #include <netinet/in.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-grantpt.c b/tests/test-grantpt.c index 4665b32..09f04e3 100644 --- a/tests/test-grantpt.c +++ b/tests/test-grantpt.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (grantpt, int, (int)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-ioctl.c b/tests/test-ioctl.c index 20ecb99..489bccc 100644 --- a/tests/test-ioctl.c +++ b/tests/test-ioctl.c @@ -23,6 +23,7 @@ SIGNATURE_CHECK (ioctl, int, (int, int, ...)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-listen.c b/tests/test-listen.c index 3f28b65..206923f 100644 --- a/tests/test-listen.c +++ b/tests/test-listen.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (listen, int, (int, int)); #include <errno.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-recv.c b/tests/test-recv.c index 1605db5..353293a 100644 --- a/tests/test-recv.c +++ b/tests/test-recv.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (recv, ssize_t, (int, void *, size_t, int)); #include <errno.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-recvfrom.c b/tests/test-recvfrom.c index dc83329..6f59a34 100644 --- a/tests/test-recvfrom.c +++ b/tests/test-recvfrom.c @@ -25,6 +25,7 @@ SIGNATURE_CHECK (recvfrom, ssize_t, #include <errno.h> #include <netinet/in.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-send.c b/tests/test-send.c index d7af0fe..2b41e21 100644 --- a/tests/test-send.c +++ b/tests/test-send.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (send, ssize_t, (int, const void *, size_t, int)); #include <errno.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-sendto.c b/tests/test-sendto.c index a99a221..536acab 100644 --- a/tests/test-sendto.c +++ b/tests/test-sendto.c @@ -26,6 +26,7 @@ SIGNATURE_CHECK (sendto, ssize_t, #include <errno.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-setsockopt.c b/tests/test-setsockopt.c index 824d46c..323b8e7 100644 --- a/tests/test-setsockopt.c +++ b/tests/test-setsockopt.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (setsockopt, int, (int, int, int, const void *, socklen_t)); #include <errno.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-shutdown.c b/tests/test-shutdown.c index ae20706..781577d 100644 --- a/tests/test-shutdown.c +++ b/tests/test-shutdown.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (shutdown, int, (int, int)); #include <errno.h> +#include <unistd.h> #include "sockets.h" #include "macros.h" diff --git a/tests/test-unlockpt.c b/tests/test-unlockpt.c index 55fd980..ee3bb82 100644 --- a/tests/test-unlockpt.c +++ b/tests/test-unlockpt.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (unlockpt, int, (int)); #include <errno.h> +#include <unistd.h> #include "macros.h" diff --git a/tests/test-vdprintf.c b/tests/test-vdprintf.c index 024cc74..7f669a7 100644 --- a/tests/test-vdprintf.c +++ b/tests/test-vdprintf.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (vdprintf, int, (int, const char *, va_list)); #include <errno.h> +#include <unistd.h> #include "macros.h" -- 1.7.11.7