summaryrefslogtreecommitdiffstats
path: root/src/db-parse-context.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/db-parse-context.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/db-parse-context.c')
-rw-r--r--src/db-parse-context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db-parse-context.c b/src/db-parse-context.c
index 7217abf..cf5171d 100644
--- a/src/db-parse-context.c
+++ b/src/db-parse-context.c
@@ -21,7 +21,9 @@
* This product is not supported/written/published by Apple!
*
*/
-
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/mman.h>
#include <sys/stat.h>
@@ -29,7 +31,9 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <glib.h>
#include "db-parse-context.h"