Skip to content

Commit

Permalink
science/cdo: Unbreak build
Browse files Browse the repository at this point in the history
... by fixing the C++ error.

Reported by:	fallout
Approved by:	portmgr (unbreak)
  • Loading branch information
yurivict committed Sep 17, 2022
1 parent 60f83a8 commit 4926ad2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions science/cdo/files/patch-src_cdo__fft.cc
@@ -0,0 +1,13 @@
- workaround for: https://code.mpimet.mpg.de/issues/10967
- this fixes compilation failure when std::swap isn't completely defined and it fails with:
- ld: error: undefined hidden symbol: std::__1::enable_if<(is_move_constructible<double>::value) && (is_move_assignable<double>::value), void>::type std::__1::swap<double>(double&, double&)
--- src/cdo_fft.cc.orig 2022-09-17 16:10:25 UTC
+++ src/cdo_fft.cc
@@ -1,5 +1,6 @@
// This source code is copied from PINGO version 1.5
+#include <algorithm>
#include <cmath>
namespace cdo

0 comments on commit 4926ad2

Please sign in to comment.