diff options
author | Greg Lehey <grog@FreeBSD.org> | 2002-03-29 06:27:12 +0000 |
---|---|---|
committer | Greg Lehey <grog@FreeBSD.org> | 2002-03-29 06:27:12 +0000 |
commit | 937e2cc97d40845c5efb4126128cc2d5c5c3078d (patch) | |
tree | 5ab0505f2291e133cc5270a03c13eb05b437c6ad /benchmarks/rawio | |
parent | Fixed port build error. (diff) |
Make this build again on systems with no MAP_INHERIT on mmap.
Diffstat (limited to 'benchmarks/rawio')
-rw-r--r-- | benchmarks/rawio/files/patch-ad | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/rawio/files/patch-ad b/benchmarks/rawio/files/patch-ad new file mode 100644 index 000000000000..efb1cbc2d164 --- /dev/null +++ b/benchmarks/rawio/files/patch-ad @@ -0,0 +1,14 @@ +--- rawio.c~ Fri Mar 29 16:52:17 2002 ++++ rawio.c Fri Mar 29 16:53:49 2002 +@@ -358,7 +358,11 @@ + childinfo = mmap (NULL, + nproc * sizeof (struct childinfo), + PROT_READ | PROT_WRITE, ++#ifdef MAP_INHERIT + MAP_INHERIT | MAP_SHARED | MAP_ANON, ++#else ++ MAP_SHARED | MAP_ANON, ++#endif + -1, + 0 ); + if (childinfo == MAP_FAILED) |