gio/tests: Clean up inclusion of unistd.h
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 4 Nov 2013 08:32:01 +0000 (16:32 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 4 Nov 2013 14:55:30 +0000 (22:55 +0800)
commitf4931142806556123ce75dcf8b84e60dc7cd4e3c
treed5ed8586fcd5459465d905b1547e61e4946783c2
parentd262b6fe0ca851a47fede2e624cec4aa041f2f14
gio/tests: Clean up inclusion of unistd.h

Include unistd.h only on *NIX and define items as necessary on Windows,
also replace instances of ssize_t with the GLib-equivilant gssize so to fix
the build on platforms that do not have ssize_t, such as Visual C++.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
gio/tests/filter-cat.c
gio/tests/gsubprocess-testprog.c
gio/tests/readwrite.c
gio/tests/resolver.c
gio/tests/win32-streams.c