From 85864928e9f078288f4c6e1758ff93596b4c11a8 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 31 Oct 2011 09:42:37 +0100 Subject: [PATCH] Fixed compilation in Windows. --- parity.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parity.c b/parity.c index 763af830..3211f94f 100644 --- a/parity.c +++ b/parity.c @@ -119,9 +119,7 @@ bail: int parity_open(struct snapraid_parity* parity, const char* path) { -#if HAVE_POSIX_FADVISE int ret; -#endif pathcpy(parity->path, sizeof(parity->path), path); @@ -153,13 +151,11 @@ int parity_open(struct snapraid_parity* parity, const char* path) return 0; -#if HAVE_POSIX_FADVISE bail: close(parity->f); parity->f = -1; parity->valid_size = 0; return -1; -#endif } int parity_sync(struct snapraid_parity* parity)