projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add stricter ghc-pkg checks on package file/dir/url fields
[ghc-hetmet.git]
/
rts
/
Papi.c
diff --git
a/rts/Papi.c
b/rts/Papi.c
index
f726604
..
62f5d0d
100644
(file)
--- a/
rts/Papi.c
+++ b/
rts/Papi.c
@@
-15,6
+15,11
@@
#ifdef USE_PAPI /* ugly */
#include <papi.h>
#ifdef USE_PAPI /* ugly */
#include <papi.h>
+/* 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"
#include "PosixSource.h"
#include "Rts.h"