summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/casacore/files/casacore-2.3.0-use-the-correct-symbol-to-detect-Linux-OS.patch')
-rw-r--r--sci-astronomy/casacore/files/casacore-2.3.0-use-the-correct-symbol-to-detect-Linux-OS.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-astronomy/casacore/files/casacore-2.3.0-use-the-correct-symbol-to-detect-Linux-OS.patch b/sci-astronomy/casacore/files/casacore-2.3.0-use-the-correct-symbol-to-detect-Linux-OS.patch
new file mode 100644
index 000000000000..86d501365ffb
--- /dev/null
+++ b/sci-astronomy/casacore/files/casacore-2.3.0-use-the-correct-symbol-to-detect-Linux-OS.patch
@@ -0,0 +1,22 @@
+From: Ole Streicher <olebole@debian.org>
+Date: Thu, 24 Nov 2016 14:31:06 +0100
+Subject: Use the correct symbol to detect Linux OS
+
+Otherwise the compilation fails on powerpc archs
+---
+ casa/aipsenv.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/casa/aipsenv.h b/casa/aipsenv.h
+index 7e272f0..25912b8 100644
+--- a/casa/aipsenv.h
++++ b/casa/aipsenv.h
+@@ -130,7 +130,7 @@ namespace casacore { //# NAMESPACE CASACORE - BEGIN
+ #if defined(AIPS_LINUX)
+ #undef AIPS_LINUX
+ #endif
+-#if defined(__linux)
++#if defined(__linux__)
+ #define AIPS_LINUX
+ #endif
+