Fix FTBFS on GNU/kFreeBSD (and likely Gnu/Hurd)
authorModestas Vainius <modax@debian.org>
Sun, 15 Jan 2017 15:00:24 +0000 (15:00 +0000)
committerFelix Geyer <fgeyer@debian.org>
Sun, 15 Jan 2017 15:00:24 +0000 (15:00 +0000)
commit191ec08e4ed1cb586417858f0751d4c20a1cc7d9
tree1b3aefb9c63313a2337224898167d02511a6cb66
parent9a58e6f3beeff2b656b895f965a861adce229c57
Fix FTBFS on GNU/kFreeBSD (and likely Gnu/Hurd)

Forwarded: yes
Origin: vendor

The original failure [1] was caused by the fact that cxxabi.h execinfo.h etc.
includes where guarded more restrictively (e.g. additionally by  __linux) than
the code which needs them (just by e.g.
KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE).  kFreeGNU has some of these headers
hence extend __linux ifdef to kFreeBSD and GNU Hurd as well.

Ideally, the code should be fixed to have the same level of ifdef protection in
all places.

[1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=kfreebsd-amd64&ver=2.8.12-1&stamp=1383507045

Gbp-Pq: Name fix-ftbfs-on-kfreebsd.patch
Source/kwsys/SystemInformation.cxx