From: antirez Date: Mon, 14 May 2012 15:35:51 +0000 (+0200) Subject: Added time.h include in redis-cli. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/e9f0419c99f12711493e0b0c692acb4ed8f4bc03?ds=inline 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. --- diff --git a/src/redis-cli.c b/src/redis-cli.c index ca2f0623..f4855879 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include