X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPapi.c;fp=rts%2FPapi.c;h=62f5d0d3963bd1bf0eb3bbb67b4c0a39381f0780;hb=a8f29216ea1f681b89fa4f55e00e404c6b0b2417;hp=f72660428b3fe1b1f1ee7d49716801b45b5f1cdc;hpb=920f106b8472089fb96eca537d1965256302301c;p=ghc-hetmet.git diff --git a/rts/Papi.c b/rts/Papi.c index f726604..62f5d0d 100644 --- a/rts/Papi.c +++ b/rts/Papi.c @@ -15,6 +15,11 @@ #ifdef USE_PAPI /* ugly */ #include +/* The posix symbols get defined in a header included from papi.h. + * undefind them here to allow redefinition in PosixSource.h */ +#undef _POSIX_SOURCE +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE #include "PosixSource.h" #include "Rts.h"