From e9f0419c99f12711493e0b0c692acb4ed8f4bc03 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 14 May 2012 17:35:51 +0200 Subject: [PATCH] Added time.h include in redis-cli. redis-cli.c uses the time() function to seed the PRNG, but time.h was not included. This was not noticed since sys/time.h is included and was enough in most systems (but not correct). With Ubuntu 12.04 GCC generates a warning that made us aware of the issue. --- src/redis-cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-cli.c b/src/redis-cli.c index ca2f06233..f48558795 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include