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.
This commit is contained in:
antirez 2012-05-14 17:35:51 +02:00
parent b3624f5a16
commit e9f0419c99
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
#include <sys/stat.h>