summaryrefslogtreecommitdiff
path: root/libiohelp/shared.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2013-02-25 21:51:35 +0100
committerPino Toscano <toscano.pino@tiscali.it>2013-02-25 21:51:35 +0100
commite652274733eeba8a753623dc61bd781c35f93c93 (patch)
treeec997ed4d1d6558dd8129c150c68c588b15929cb /libiohelp/shared.c
parent25b928645df760156a58aa707da56eae66a4ae77 (diff)
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>.
Diffstat (limited to 'libiohelp/shared.c')
-rw-r--r--libiohelp/shared.c2
1 files changed, 2 insertions, 0 deletions
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 <stdlib.h>
+
/* These definitions exist to satisfy the linker. */
void __attribute__ ((weak))