Add #undefs for posix source symbols when including papi.h
authordmp@rice.edu <unknown>
Thu, 24 Jun 2010 16:35:14 +0000 (16:35 +0000)
committerdmp@rice.edu <unknown>
Thu, 24 Jun 2010 16:35:14 +0000 (16:35 +0000)
commita8f29216ea1f681b89fa4f55e00e404c6b0b2417
treee8e48d40ca3c7b8389a6dd5bed81fbdb23a6ae0e
parent920f106b8472089fb96eca537d1965256302301c
Add #undefs for posix source symbols when including papi.h

Validation fails when validating with PAPI support (i.e. GhcRtsWithPapi  = YES
in validate.mk).  The problem is that the posix symbols are defined by a header
included from papi.h. Compilation then fails because these symbols are
redefined in PosixSource.h.

This patch adds an undefine for the posix symbols after including papi.h and
before including PosixSource.h. The #undefines are localized to Papi.c since
that is the only case where they are getting defined twice.
rts/Papi.c