summaryrefslogtreecommitdiffstats
path: root/debian/patches/hppa64-libgcov-fallback.diff
blob: 58e4410e1bba39070e536e3cc205c6701dd582fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/libgcc/libgcov.h
+++ b/src/libgcc/libgcov.h
@@ -45,6 +45,12 @@
 #include "libgcc_tm.h"
 #include "gcov.h"
 
+/* hppa64-linux-gnu does not have this header, use the fallback.  */
+#if defined(__LP64__) && defined(_PA_RISC2_0)
+#undef HAVE_SYS_MMAN_H
+#define HAVE_SYS_MMAN_H 0
+#endif
+
 #if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif