diff options
author | dholland <dholland> | 2011-08-01 03:54:53 +0000 |
---|---|---|
committer | dholland <dholland> | 2011-08-01 03:54:53 +0000 |
commit | d82e10e973cdc51b934cf7c1ca25ae192bd98936 (patch) | |
tree | bcf8b4b3e436846b92d23f1cea7e66a83853d16d /benchmarks | |
parent | 5d010b7c09f3aa88483869f8b75fdb9b5e2c2d9c (diff) | |
download | pkgsrc-d82e10e973cdc51b934cf7c1ca25ae192bd98936.tar.gz |
Fix broken clang build.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/hbench/distinfo | 3 | ||||
-rw-r--r-- | benchmarks/hbench/patches/patch-src_memsize_c | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/benchmarks/hbench/distinfo b/benchmarks/hbench/distinfo index b21bcd368b9..94bc82105d4 100644 --- a/benchmarks/hbench/distinfo +++ b/benchmarks/hbench/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.14 2011/05/28 23:02:33 dholland Exp $ +$NetBSD: distinfo,v 1.15 2011/08/01 03:54:53 dholland Exp $ SHA1 (hbench-1.0/hbench-OS-1.0.tar.gz) = b1a72287e2d04561141f296ba04d142f60152fe0 RMD160 (hbench-1.0/hbench-OS-1.0.tar.gz) = 2e2702c035689e1dec39328e47dc9dc9ff558103 @@ -21,3 +21,4 @@ SHA1 (patch-ap) = 057465b9f89e76367781401d91b333679a651cb4 SHA1 (patch-aq) = 464f523a64af1c7d4ca61aa21c0c635e725ece43 SHA1 (patch-ar) = 26c8cb68f6d5c8b878e5f600eba579e9cd2fce30 SHA1 (patch-as) = 5e6668a93610db020a4de0e46620b37f24e53309 +SHA1 (patch-src_memsize_c) = e3ed79a04998503ebc5d789d0c66423f1506e52d diff --git a/benchmarks/hbench/patches/patch-src_memsize_c b/benchmarks/hbench/patches/patch-src_memsize_c new file mode 100644 index 00000000000..8fea39eb49d --- /dev/null +++ b/benchmarks/hbench/patches/patch-src_memsize_c @@ -0,0 +1,30 @@ +$NetBSD: patch-src_memsize_c,v 1.1 2011/08/01 03:54:53 dholland Exp $ + +Use c89. Fixes broken clang build. + +--- src/memsize.c~ 1997-06-27 00:35:25.000000000 +0000 ++++ src/memsize.c +@@ -44,6 +44,7 @@ char *id = "$Id: memsize.c,v 1.8 1997/06 + #define TOO_LONG 10 /* usecs */ + #endif + ++int + main(ac, av) + char **av; + { +@@ -91,6 +92,7 @@ main(ac, av) + exit(0); + } + ++void + timeit(where, size) + char *where; + { +@@ -122,6 +124,7 @@ timeit(where, size) + printf("%d\n", (size>>20)); + } + ++void + touch(char *p, char *end, int range) + { + char *tmp = p; |