$NetBSD: patch-aa,v 1.6 2006/06/03 01:13:40 joerg Exp $ --- src/rebuild.cc.orig 2006-06-03 00:54:52.000000000 +0000 +++ src/rebuild.cc @@ -1001,6 +1001,9 @@ void RebuildFile::init_stream() #elif __GNUG__ == 3 and __GNUC_MINOR__ < 2 buf = new filebuf(fdopen(dup(seg->fd()), "a+"), ios::out); buf->pubseekoff(0, ios::end, ios::out); +#elif __GNUG__ > 3 || (__GNUG__ == 3 && __GNUC_MINOR__ >= 4) + buf = new __gnu_cxx::stdio_filebuf (seg->fd(), ios::out, default_segment_size); + buf->pubseekoff(0, ios::end, ios::out); #else buf = new __gnu_cxx::stdio_filebuf (seg->fd(), ios::out, false /* close */, default_segment_size);