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