summaryrefslogtreecommitdiff
path: root/www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-08-02 16:20:20 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-08-02 16:20:20 +0000
commit0a46264f4c625e375c726871af8c4195be1c2fb7 (patch)
tree9c77deae5bf2077488f87ba368bdef9ea3991f0b /www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c
parentFix build on 4-STABLE disabiling sanity check. (diff)
- Update harvest to 1.9.10
- Fix build: use starg instead of vararg - hand over maintainership PR: ports/55162 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Notes
Notes: svn path=/head/; revision=86194
Diffstat (limited to 'www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c')
-rw-r--r--www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c b/www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c
new file mode 100644
index 000000000000..6658afb13538
--- /dev/null
+++ b/www/harvest/files/patch-components::gatherer::standard::pstext::libs::src::sio::sprint.c
@@ -0,0 +1,31 @@
+--- ./components/gatherer/standard/pstext/libs/src/sio/sprint.c.orig Fri Jan 31 17:25:04 2003
++++ ./components/gatherer/standard/pstext/libs/src/sio/sprint.c Fri Aug 1 13:24:58 2003
+@@ -132,6 +132,15 @@
+ * - all floating point arguments are passed as doubles
+ */
+ /* VARARGS2 */
++#if defined(__STRICT_ANSI__)
++int Sprint( int fd, char *fmt,... )
++{
++ __sio_descriptor_t *dp = &__sio_descriptors[ fd ] ;
++ register __sio_od_t *odp = ODP( dp ) ;
++ register int cc ;
++ va_list ap ;
++ va_start( ap,fmt ) ;
++#else
+ int Sprint( fd, fmt, va_alist )
+ int fd ;
+ register char *fmt ;
+@@ -141,10 +150,10 @@
+ register __sio_od_t *odp = ODP( dp ) ;
+ register int cc ;
+ va_list ap ;
+-
++ va_start( ap ) ;
++#endif
+ IO_SETUP( fd, dp, __SIO_OUTPUT_STREAM, SIO_ERR ) ;
+
+- va_start( ap ) ;
+ cc = __sio_converter( odp, fd, fmt, ap ) ;
+ va_end( ap ) ;
+ return( cc ) ;