[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fix warnings in the Windows build of the Perl bindings

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-08-29 07:17:23 CEST

David James wrote:

>Index: subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c
>===================================================================
>--- subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c (revision 15951)
>+++ subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c (working copy)
>@@ -1370,7 +1370,8 @@
> pool);
> } else if (SvROK(file) && SvTYPE(SvRV(file)) == SVt_PVGV) {
> apr_status_t status;
>- apr_os_file_t osfile = PerlIO_fileno(IoIFP(sv_2io(file)));
>+ apr_os_file_t osfile = (apr_os_file_t)
>+ PerlIO_fileno(IoIFP(sv_2io(file)));
>
>
This won't work and can't work on Windows. PerlIO_fileno returns an int
file descriptor. apr_os_file_t is a HANDLE, a completely different,
totally incompatible beast.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 29 07:18:02 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.