Annotation of pkgsrc/security/git-crypt/patches/patch-util.cpp, revision 1.2
1.2 ! leot 1: $NetBSD: patch-util.cpp,v 1.1 2022/12/05 21:57:58 nikita Exp $
1.1 nikita 2:
3: Keep the C++ streams synchronized to the standard C streams on NetBSD otherwise
4: it is not possible to read via std::cin.
5:
1.2 ! leot 6: Related to PR lib/58206.
1.1 nikita 7:
8: --- util.cpp.orig 2017-11-26 18:24:03.000000000 +0000
9: +++ util.cpp
10: @@ -141,7 +141,9 @@ static void init_std_streams_platform ()
11: void init_std_streams ()
12: {
13: // The following two lines are essential for achieving good performance:
14: +#ifndef __NetBSD__
15: std::ios_base::sync_with_stdio(false);
16: +#endif
17: std::cin.tie(0);
18:
19: std::cin.exceptions(std::ios_base::badbit);
CVSweb <webmaster@jp.NetBSD.org>