defining off64_t as off_t for cygwin

This commit is contained in:
Alex Shinn 2010-08-17 00:17:50 +09:00
parent 02b888b438
commit 2449b97341

View file

@ -86,6 +86,11 @@ static ssize_t sexp_cookie_writer (void *cookie, const char *buffer, size_t size
} }
#if ! SEXP_BSD #if ! SEXP_BSD
#ifdef __CYGWIN__
#define off64_t off_t
#endif
static int sexp_cookie_seeker (void *cookie, off64_t *position, int whence) { static int sexp_cookie_seeker (void *cookie, off64_t *position, int whence) {
sexp vec = (sexp)cookie, ctx, res; sexp vec = (sexp)cookie, ctx, res;
if (! sexp_procedurep(sexp_cookie_seek(vec))) return -1; if (! sexp_procedurep(sexp_cookie_seek(vec))) return -1;