Annotation of pkgsrc/security/git-crypt/patches/patch-util.cpp, revision 1.1

1.1     ! nikita      1: $NetBSD$
        !             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: 
        !             6: XXX: Why?
        !             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>