The previous patch was missing an #include and thus the compiler didn't
catch the (now obvious) error.
Signed-off-by: Iustin Pop <iustin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
#include <time.h>
#include <limits.h>
+#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/types.h>
/* Try the read */
if (d_flag)
- gettimeofday(&tv1);
+ gettimeofday(&tv1, NULL);
got = read (dev, buffer, try * block_size);
if (d_flag)
- gettimeofday(&tv2);
+ gettimeofday(&tv2, NULL);
if (got < 0)
got = 0;
if (got & 511)