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
commitd260fb7c7ab3e2914aae4404a53da9e4fcc374ec (patch)
treea6a51d43722d1697c8b6c484e2e66a2370ef3f19 /src/db-parse-context.c
parenta5faa1006ab08ed13d67956257df19e44d0f7f54 (diff)
downloadlibgpod-d260fb7c7ab3e2914aae4404a53da9e4fcc374ec.tar.gz
libgpod-d260fb7c7ab3e2914aae4404a53da9e4fcc374ec.tar.xz
libgpod-d260fb7c7ab3e2914aae4404a53da9e4fcc374ec.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"