summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-01-08 13:42:27 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-01-08 13:42:27 +0000
commita10afb112ae71d2cdaa58ef2c8a98a9b4dfb492f (patch)
treeabc57d076451c0bfe2b3416a4db5a7b5da035b9e /telepathy-glib/debug.c
parent3b76172fde7f07c5729403d0968c7293dadb8614 (diff)
downloadtelepathy-glib-a10afb112ae71d2cdaa58ef2c8a98a9b4dfb492f.tar.gz
Conditionally include <unistd.h>, Windows doesn't have one
Patch from Sunil Mohan Adapa <sunil@synovel.com>
Diffstat (limited to 'telepathy-glib/debug.c')
-rw-r--r--telepathy-glib/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index a452afc42..cbd1d6a09 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -57,7 +57,10 @@
#include <fcntl.h>
#include <stdarg.h>
#include <sys/stat.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <glib.h>
#include <glib/gstdio.h>