X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPapi.c;h=62f5d0d3963bd1bf0eb3bbb67b4c0a39381f0780;hb=94d7c806e2b0f1640372142a89cac2e974f5c26b;hp=f72660428b3fe1b1f1ee7d49716801b45b5f1cdc;hpb=d4942f78fc3cce355d340b7bba0b42e4123103fa;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"