diff options
author | Christophe Fergeau <teuf@gnome.org> | 2008-01-29 23:14:21 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2008-01-29 23:14:21 +0000 |
commit | 824380045f502a3ae0654d6deba1faae62ad966c (patch) | |
tree | a6a51d43722d1697c8b6c484e2e66a2370ef3f19 /src/db-parse-context.c | |
parent | 388937b8a78bc4d4e0a72721af7c1001b0ed9e22 (diff) | |
download | libgpod-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.c | 6 |
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" |