From ec982a57233668b7a551de94bcb05f13747522de Mon Sep 17 00:00:00 2001 From: Enrico Giordani Date: Sun, 12 Jul 2015 16:51:31 +0200 Subject: [PATCH] Win32 portability fix. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 39ac9eb8..d74a7d0c 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -94,7 +94,7 @@ int clusterBumpConfigEpochWithoutConsensus(void); * sake of locking if it does not already exist), REDIS_ERR is returned. * If the configuration was loaded from the file, REDIS_OK is returned. */ int clusterLoadConfig(char *filename) { - FILE *fp = fopen(filename,"r"); + FILE *fp = fopen(filename,IF_WIN32("rb", "r")); struct IF_WIN32(_stat64,stat) sb; // TODO: verify for 32-bit char *line; int maxline, j;