pkgsrc/misc/gelemental/patches/patch-libelemental_value.cc
joerg d0edec56a6 Drop use of GNU extensions to allow building with other STL
implementations. The associated constructors are otherwise unused.
Bump revision.
2015-07-03 12:46:10 +00:00

32 lines
1 KiB
C++

$NetBSD: patch-libelemental_value.cc,v 1.1 2015/07/03 12:46:10 joerg Exp $
--- libelemental/value.cc.orig 2015-06-27 14:24:42.000000000 +0000
+++ libelemental/value.cc
@@ -23,7 +23,6 @@
#include <libelemental/value.hh>
#include <libelemental/value-types.hh>
-#include <ext/stdio_filebuf.h>
#include <glibmm/utility.h>
#include <pango/pango-attributes.h>
@@ -130,19 +129,6 @@ EntriesView::max_name_length = 0;
//******************************************************************************
// class EntriesStream
-
-EntriesStream::EntriesStream (FILE* file) throw ()
-: buf (new __gnu_cxx::stdio_filebuf<char> (file, std::ios_base::out)),
- buf_owned (true), os (*new std::ostream (buf)), os_owned (true)
-{}
-
-
-EntriesStream::EntriesStream (int fd) throw ()
-: buf (new __gnu_cxx::stdio_filebuf<char> (fd, std::ios_base::out)),
- buf_owned (true), os (*new std::ostream (buf)), os_owned (true)
-{}
-
-
EntriesStream::EntriesStream (std::streambuf& buf_) throw ()
: buf (&buf_), buf_owned (false),
os (*new std::ostream (buf)), os_owned (true)