benchmarks/iorate: implicit decl. of function 'gettimeofday' is invalid in C99

PR:		210856
Reported by:	Mark Millard <markmi@dsl-only.net>
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:	blttll@gmail.com (maintainer timeout)
This commit is contained in:
Kurt Jaeger 2016-09-10 19:20:44 +00:00
parent b28faa14f0
commit c0189bbe10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421728
2 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,13 @@
--- ior_mach.c.orig 2011-11-03 15:27:58 UTC
+++ ior_mach.c
@@ -41,6 +41,7 @@ static char rcsid[] = "$Header: /home/we
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
+#include <sys/time.h>
/*
* Solaris needs ior_mach.h to be after the above or
@@ -411,6 +411,10 @@ int ior_dev_lock( ior_config *cfg, long
};

View file

@ -0,0 +1,10 @@
--- ior_rand.c.orig 2016-08-02 17:15:56 UTC
+++ ior_rand.c
@@ -24,6 +24,7 @@ static char rcsid[] = "$Header: /home/we
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
+#include <sys/time.h>
/*
* Solaris needs ior_mach.h to be after the above or