From e652274733eeba8a753623dc61bd781c35f93c93 Mon Sep 17 00:00:00 2001
From: Pino Toscano <toscano.pino@tiscali.it>
Date: Mon, 25 Feb 2013 21:51:35 +0100
Subject: Include <stdlib.h> or <mach.h> where needed

cthreads.h includes both <stdlib.h> and <mach.h>, 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 <stdlib.h>.
* 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 <mach.h>.
---
 libiohelp/iouser-dup.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'libiohelp/iouser-dup.c')

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 <stdlib.h>
+
 error_t
 iohelp_dup_iouser (struct iouser **clone, struct iouser *iouser)
 {
-- 
cgit v1.2.3