diff options
| author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-01-29 23:14:21 +0000 |
|---|---|---|
| committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-01-29 23:14:21 +0000 |
| commit | 5c53ef110b37bd80b2846c5275c3d92cee54e987 (patch) | |
| tree | a6a51d43722d1697c8b6c484e2e66a2370ef3f19 /src/db-parse-context.c | |
| parent | 47ec766087788c4abff7804e85b5bd3c27d6503b (diff) | |
| download | libgpod-5c53ef110b37bd80b2846c5275c3d92cee54e987.tar.gz libgpod-5c53ef110b37bd80b2846c5275c3d92cee54e987.tar.xz libgpod-5c53ef110b37bd80b2846c5275c3d92cee54e987.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" |
