summaryrefslogtreecommitdiff
path: root/gio/glocalfileinputstream.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2007-12-03 22:37:44 +0000
committerHans Breuer <hans@src.gnome.org>2007-12-03 22:37:44 +0000
commit43ae3892110d4d4a0c744a10cbcbdcc337efefc1 (patch)
tree5881ff9c53e498710c13ec7d1a5c0f888073f4b7 /gio/glocalfileinputstream.c
parent72ed8191afd8ff124a45285b420625e1342e35cf (diff)
downloadglib-43ae3892110d4d4a0c744a10cbcbdcc337efefc1.tar.gz
[start of port to win32/msvc] HAVE_UNIST_H and _pipe() only include
2007-12-03 Hans Breuer <hans@breuer.org> [start of port to win32/msvc] * gcancellable.c : HAVE_UNIST_H and _pipe() * gcontenttype.c : only include <dirent.h> in the UNIX branch * gdatainputstream.c : pointer arithmetic on void* is a gcc extension * gdummyfile.c glocalfileinputstream.c gsimpleasyncresult.c : use HAVE_UNIST_H * glocalfileoutputstream.c : use HAVE_UNIST_H and s/ssize_t/gssize/ * glocalvfs.c : use HAVE_PWD_H * gio.symbols : ifdef unix specific functions with G_OS_UNIX * makefile.msc : new file (maybe later converted to makefile.msc.in) * Makefile.am : added to EXTRA_DIST svn path=/trunk/; revision=6027
Diffstat (limited to 'gio/glocalfileinputstream.c')
-rw-r--r--gio/glocalfileinputstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/glocalfileinputstream.c b/gio/glocalfileinputstream.c
index a1aa00b43..c634f9073 100644
--- a/gio/glocalfileinputstream.c
+++ b/gio/glocalfileinputstream.c
@@ -25,7 +25,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#include <glib.h>