Make nsgmls compile on OpenBSD.

As far as I can tell, the duplicate instantiations from entmgr_inst.m4 are
unnecessary and only cause compile failures without -fpermissive.
This commit is contained in:
Pascal Stumpf
2012-08-11 14:09:40 +02:00
committed by Jon Trulson
parent e3ad7e24e3
commit 205e26b3ef
10 changed files with 15 additions and 21 deletions

View File

@@ -33,7 +33,7 @@
#ifdef SP_SHORT_HEADERS
#include <strstrea.h>
#else
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <strstream>
#else
#include <strstream.h>
@@ -82,7 +82,7 @@ String<char> OutputCodingSystem::convertOut(const StringC &str) const
encoder->output(copy.data(), copy.size(), &stream);
delete encoder;
char *s = stream.str();
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
String<char> result(s, stream.pcount());
#else
String<char> result(s, stream.out_waiting());