5 December 2006

This is an approved src.alt for 481.wrf in CPU2006 v1.0 and v1.0.1.  It will
allow compilers that do not define _MSC_VER to use "io.h" instead of
"unistd.h".

To apply the src.alt, unpack the tar file in the top level of the CPU2006
directory.  The following sequence of commands should accomplish this:

$ /bin/sh
$ cd <cpu2006 dir>
$ . ./shrc
$ go top
$ specbzip2 -dc <src.alt tarball> | spectar -xvf -

Please replace the items in angle brackets ( <> ) as appropriate.

To have the src.alt applied during compilation, please add the following
stanza to your config file:

# Enable use of "io.h" instead of "unistd.h"
481.wrf:
srcalt=need_io_h
CPORTABILITY=-DSPEC_CPU_NEED_IO_H

Because this src.alt adds a new flag, in order to avoid having
"-DSPEC_CPU_NEED_IO_H" marked as an "unknown" flag, it is necessary to
update the flags files in your distribution.  You can do this by running

$ runspec --newflags

For more information on this option, see

  http://www.spec.org/cpu2006/Docs/runspec.html#newflags

Information on setting HTTP proxies is at

  http://www.spec.org/cpu2006/Docs/runspec.html#http_proxy

This src.alt makes one performance neutral portability-related change to
481.wrf.

On Windows, the Microsoft compilers do not use the "unistd.h" header file and
instead use "io.h".  This src.alt allows other compilers to also use "io.h"
by adding a new macro called "SPEC_CPU_NEED_IO_H".

Please address any questions about this src.alt to cpu2006support@spec.org.
