diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2013-02-25 21:51:35 +0100 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2013-02-25 21:51:35 +0100 |
commit | e652274733eeba8a753623dc61bd781c35f93c93 (patch) | |
tree | ec997ed4d1d6558dd8129c150c68c588b15929cb /console-client/vga-support.c | |
parent | 25b928645df760156a58aa707da56eae66a4ae77 (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 'console-client/vga-support.c')
-rw-r--r-- | console-client/vga-support.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/console-client/vga-support.c b/console-client/vga-support.c index 2837a6e0..130bcc50 100644 --- a/console-client/vga-support.c +++ b/console-client/vga-support.c @@ -26,6 +26,7 @@ #include <sys/mman.h> #include <sys/types.h> #include <string.h> +#include <stdlib.h> #include "vga-hw.h" #include "vga-support.h" |