summaryrefslogtreecommitdiffstats
path: root/src/itdb_device.c
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-01-29 23:14:21 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-01-29 23:14:21 +0000
commit824380045f502a3ae0654d6deba1faae62ad966c (patch)
treea6a51d43722d1697c8b6c484e2e66a2370ef3f19 /src/itdb_device.c
parent388937b8a78bc4d4e0a72721af7c1001b0ed9e22 (diff)
downloadlibgpod-824380045f502a3ae0654d6deba1faae62ad966c.tar.gz
libgpod-824380045f502a3ae0654d6deba1faae62ad966c.tar.xz
libgpod-824380045f502a3ae0654d6deba1faae62ad966c.zip
Portability fix: only include unistd.h when it's available
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1940 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_device.c')
-rw-r--r--src/itdb_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/itdb_device.c b/src/itdb_device.c
index fc2511c..2116fe5 100644
--- a/src/itdb_device.c
+++ b/src/itdb_device.c
@@ -38,7 +38,9 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <glib/gi18n-lib.h>
static const Itdb_IpodInfo ipod_info_table [] = {