diff options
author | pi <pi@FreeBSD.org> | 2016-09-11 03:20:44 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-09-11 03:20:44 +0800 |
commit | de516990607148f2229acfb405f585b17ecb4564 (patch) | |
tree | 339549c79e28274a65408cc1907b603dd3b28ab9 /benchmarks | |
parent | b1a62253aac304d473395128091791ce6bbd77a9 (diff) | |
download | freebsd-ports-gnome-de516990607148f2229acfb405f585b17ecb4564.tar.gz freebsd-ports-gnome-de516990607148f2229acfb405f585b17ecb4564.tar.zst freebsd-ports-gnome-de516990607148f2229acfb405f585b17ecb4564.zip |
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)
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/iorate/files/patch-ior__mach.c | 8 | ||||
-rw-r--r-- | benchmarks/iorate/files/patch-ior__rand.c | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/benchmarks/iorate/files/patch-ior__mach.c b/benchmarks/iorate/files/patch-ior__mach.c index c8ea84dd82b7..b651b09d7be3 100644 --- a/benchmarks/iorate/files/patch-ior__mach.c +++ b/benchmarks/iorate/files/patch-ior__mach.c @@ -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 }; diff --git a/benchmarks/iorate/files/patch-ior__rand.c b/benchmarks/iorate/files/patch-ior__rand.c new file mode 100644 index 000000000000..2d5e50e8cf0c --- /dev/null +++ b/benchmarks/iorate/files/patch-ior__rand.c @@ -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 |