diff options
Diffstat (limited to 'math/octave/patches/patch-libinterp_corefcn_rand.cc')
-rw-r--r-- | math/octave/patches/patch-libinterp_corefcn_rand.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/math/octave/patches/patch-libinterp_corefcn_rand.cc b/math/octave/patches/patch-libinterp_corefcn_rand.cc new file mode 100644 index 00000000000..765aab961ff --- /dev/null +++ b/math/octave/patches/patch-libinterp_corefcn_rand.cc @@ -0,0 +1,18 @@ +$NetBSD: patch-libinterp_corefcn_rand.cc,v 1.1 2016/02/16 04:21:40 dbj Exp $ + +--- libinterp/corefcn/rand.cc.orig 2015-05-23 14:21:53.000000000 +0000 ++++ libinterp/corefcn/rand.cc +@@ -1139,10 +1139,10 @@ likely.\n\ + @end deftypefn") + { + +-#ifdef USE_UNORDERED_MAP_WITH_TR1 +-using std::tr1::unordered_map; +-#else ++#if defined (HAVE_UNORDERED_MAP) + using std::unordered_map; ++#else ++using std::tr1::unordered_map; + #endif + + int nargin = args.length (); |