From e652274733eeba8a753623dc61bd781c35f93c93 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 25 Feb 2013 21:51:35 +0100 Subject: Include or where needed cthreads.h includes both and , while pthreads.h does not; with the switch to pthreads, their lack causes prototype compilation warnings for malloc/calloc/free/abort, and mach_task_self/mach_reply_port/etc in few places. * console-client/vga-support.c: Include . * libiohelp/iouser-dup.c: Likewise. * libiohelp/iouser-free.c: Likewise. * libiohelp/iouser-reauth.c: Likewise. * libiohelp/return-buffer.c: Likewise. * libiohelp/shared.c: Likewise. * pflocal/connq.c: Likewise. * nfsd/cache.c: Include . --- libiohelp/iouser-dup.c | 2 ++ libiohelp/iouser-free.c | 2 ++ libiohelp/iouser-reauth.c | 1 + libiohelp/return-buffer.c | 1 + libiohelp/shared.c | 2 ++ 5 files changed, 8 insertions(+) (limited to 'libiohelp') diff --git a/libiohelp/iouser-dup.c b/libiohelp/iouser-dup.c index 9158d0c4..ae55ad1d 100644 --- a/libiohelp/iouser-dup.c +++ b/libiohelp/iouser-dup.c @@ -17,6 +17,8 @@ #include "iohelp.h" +#include + error_t iohelp_dup_iouser (struct iouser **clone, struct iouser *iouser) { diff --git a/libiohelp/iouser-free.c b/libiohelp/iouser-free.c index 4cfdc954..19153da7 100644 --- a/libiohelp/iouser-free.c +++ b/libiohelp/iouser-free.c @@ -17,6 +17,8 @@ #include "iohelp.h" +#include + void iohelp_free_iouser (struct iouser *iouser) { diff --git a/libiohelp/iouser-reauth.c b/libiohelp/iouser-reauth.c index 4125cfb8..9edab7cf 100644 --- a/libiohelp/iouser-reauth.c +++ b/libiohelp/iouser-reauth.c @@ -18,6 +18,7 @@ #include "iohelp.h" #include #include +#include /* Conduct a reauthentication transaction, returning a new iouser. AUTHSERVER is the I/O servers auth port. The rendezvous port diff --git a/libiohelp/return-buffer.c b/libiohelp/return-buffer.c index 3095dfb6..e186698f 100644 --- a/libiohelp/return-buffer.c +++ b/libiohelp/return-buffer.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "iohelp.h" diff --git a/libiohelp/shared.c b/libiohelp/shared.c index 082b526b..b31a7170 100644 --- a/libiohelp/shared.c +++ b/libiohelp/shared.c @@ -18,6 +18,8 @@ #include "iohelp.h" +#include + /* These definitions exist to satisfy the linker. */ void __attribute__ ((weak)) -- cgit v1.2.3