Re: [xml] libxml2-2.4.13 compiled for SunOS 4.1.3 (fwd)
- From: Bjorn Reese <breese mail1 stofanet dk>
- To: jw cs fau de
- Cc: xml gnome org
- Subject: Re: [xml] libxml2-2.4.13 compiled for SunOS 4.1.3 (fwd)
- Date: Mon, 08 Apr 2002 16:20:20 +0000
Juergen Weigert wrote:
So I stick to good old SunOS 4.1.3 U1 (which is only a partial posix)
I did not investigate, why an fprintf() prototype is missing, some c-files
give only a warning, other fail without it.
My sprintf returns a pointer to the buffer instead of a length. p +=
strlen(sprintf(...)); would do the trick for me, but you won't like it.
Your suggestion (the added strlen) results in a performance penalty
on all platform, just to please an obsolete platform (which isn't
even C89 compliant). Instead I would really urge you to use the trio
fallback solution, which provides a C89 compliant sprintf function.
The following patch should do the trick (warning: untested)
--- configure.in Mon Apr 8 18:10:45 2002
+++ configure.in.new Mon Apr 8 18:18:19 2002
@@ -182,7 +182,7 @@
+ hppa*-hp-mpeix | *-sun-sunos)
] [Thread Prev